Engineering SHEET: /blog/revit和yjk也终于实现实时联动了/ REV: 2026-08-05

Revit and YJK have finally achieved real-time linkage!

Zhou Wenqi (Venchy) 13 min read

Revit and YJK have finally achieved real-time linkage!

Official Account: Non-Deconstructive · Author: Zhou Wenqi (Venchy)

1. The necessity of linking YJK with Revit

With the promotion of BIM technology, the exploration of forward design methods based on BIM has become a hot topic in the current architectural design industry. The entire design process is run through a model, and various disciplines collaborate with each other to obtain the information they want from this model and realize real-time linkage adjustments of all disciplines. All drawings can also be generated directly through these three-dimensional models. This idea is undoubtedly beautiful. If such technology is applied in the actual design process, the work efficiency of architects and engineers will undoubtedly be greatly improved. At present, many companies have seen the potential of such technical paths and have begun various attempts. However, the process of exploration is undoubtedly tortuous. At present, there are few cases of successful application of professional 3D forward design. There are many reasons for this situation, and a very important reason is that there is currently no very reliable forward design collaboration tool on the market. In order to solve this problem, this article explores the method of real-time linkage between YJK and Revit based on the YJK-GAMA digital intelligent design platform. Currently, Revit has interfaces based on Rhino and grasshopper. YJK can establish connections with Rhino and Grasshopper through YJK-GAMA. Therefore, we tried to establish a real-time linkage interface between YJK and Revit through YJK-GAMA and grasshopper.

2、YJK与Revit模型的联动

2.1 Rhino.Inside.Revit

Rhino.Inside.Revit is an open source project launched by mcneel that drives Revit models through Rhino and Grasshopper. It is a sub-project of mcneel’s Rhino.Inside project (this project also includes modules for embedding Rhino into Autocad, Unity and other software). The purpose of this project is to embed Rhino and Grasshopper into these software through secondary development, so that Rhino becomes a plug-in that can control these software, and Grasshopper becomes a plug-in for the Rhino plug-in. Before installing Rhino.Inside.Revit, any version of Rhino7 and Revit2018-2022 needs to be pre-installed. Components can be downloaded through Food4Rhino. Revit can be started directly after the component is installed. The following prompt will appear during the startup process: Click Always Load directly, and when you start Revit later, Rhino.Inside.Revit will be automatically loaded. After starting Revit, the Rhino.Inside menu will appear in Revit. Click the Start button to activate the Rhino.Inside component. Click the Rhino button to activate the Rhino interface. Click the grasshopper button to activate the grasshopper interface. The grasshopper interface contains Revit-related panels, which contain many batteries for Revit-related functions. We can directly control Revit through these two interfaces.

2.2 Transfer Revit objects to YJK

After opening the interface, we can directly obtain the objects in the Revit model through grasshopper. Take a pillar as an example: we can load a graphical element battery in grasshopper. Right-click on the structure object that needs to be loaded. In this way, the components in the Revit model are loaded into grasshopper. We can obtain the unit line of the column in Rhino through the ElementCurve in Element. We can also obtain the cross-sectional dimensions of the column through element type battery and type identity battery. In this way, we can fully obtain all the information about the column. Next, we only need to transfer the obtained Revit component information to YJK through the Gama interface to complete the real-time linkage between YJK and Revit data. Here, we only need to transfer the axis of the column and the cross-sectional dimensions of the column to YJK. Since sections in Revit are defined through families, we can complete the conversion of section parameters by getting the type name of the section family, and then through character operations in grasshopper. After the data in grasshopper is transferred to YJK, the logic of model generation can be built directly in YJK-GAMA. In this way, real-time linkage between Revit and YJK data can be achieved. We can see that when moving the column in Revit, the column in YJK also moves accordingly. Corresponding cross-sectional dimensions can also be linked simultaneously.

2.3 Transfer YJK objects to Revit

同样的,我们可以反向地将YJK中的模型数据同步传输到Revit中。首先,我们可以在YJK中加载需要传输的构件,在这里,我们通过点选的方式在YJK-GAMA中加载YJK构件。然后,我们分解柱的卡片,获得柱子相关的参数。接下来,还是通过发送曲线的方式,将YJK中的构件发送到Revit上的grasshopper中。在grasshopper中,我们可以通过Input选项卡下的获取族,获取楼层等电池,加载Revit中已有的族和属性。我们通过YJK传递过来的曲线,联合从Revit中加载的族,就可以将YJK中创建的柱子同步到Revit中。但是在这里有个小缺陷,就是Rhino.Inside会屏蔽一些同步函数,因此在这里,当YJK中的柱子修改时,grasshopper无法响应修改,需要在gh的画布上重新运行一下recompute,才能将修改过的对象加载入Revit中。

3. Summary

We can find that through the data interaction between YJK-GAMA and Grasshopper, Revit can achieve two-way data exchange with YJK. So, can we make such an assumption? Throughout the design process, we use Revit modeling and use Revit’s three-dimensional design capabilities and drawing capabilities to replace CAD drawings where appropriate. Through data interaction between YJK-GAMA and the YJK model, real-time updating and adjustment of the structural model can be achieved. Concentrate most of the work on one model instead of repeatedly synchronizing between different models to perform mechanical repetitive operations. Will this improve our current workflow and save everyone’s working time?

All model interaction case files in this article have been uploaded to Baidu Cloud Disk, and everyone is welcome to download and use them. Download address: https://pan.baidu.com/s/1xp7qBWrnzIWxRgylIPb_8g Extraction code: 4167

YJK-GAMA现已升级到1.2版本,加入QQ群,我们一起来探索YJK-GAMA的无限可能!联系我们”大菲儿”。加入”建筑结构数智化设计”微信交流群,一起来交流探讨数字化、智能化等前沿技术在建筑设计行业中的运用。更欢迎志同道合的伙伴们加入我们,一起来做点好玩的事情。接下来我们还会给您带来更多的惊喜,关注我们公众号吧!


*This document is automatically collected and organized by AI from non-deconstructed public accounts and is for learning reference only. *

#wechat

Original Source: https://mp.weixin.qq.com/s/_C6G3DMFD6TT3WE_kgXeyQ

§

评论

COMMENT / REVIEW REQUIRED

LOADING…