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

Revit and YJK have finally achieved real-time linkage!

Zhou Wenqi (Venchy) 15 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. Linkage between YJK and Revit models

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

Similarly, we can synchronously transfer model data in YJK to Revit in reverse.First, we can load the components that need to be transferred in YJK. Here, we load the YJK components in YJK-GAMA by clicking.Then, we decompose the column card and obtain the parameters related to the column.Next, send the components in YJK to grasshopper on Revit by sending curves.In grasshopper, we can obtain families such as floors through Get Family under the Input tab, and load existing families and attributes in Revit.We can synchronize the columns created in YJK to Revit through the curves passed from YJK and the families loaded from Revit.But there is a small flaw here, that is, Rhino.Inside will block some synchronization functions. Therefore, when the columns in YJK are modified, grasshopper cannot respond to the modifications. Recompute needs to be rerun on the gh canvas to load the modified objects into 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 has now been upgraded to version 1.2. Join the QQ group and let’s explore the infinite possibilities of YJK-GAMA!Contact us “Da Feier”.Join the “Digital Intelligent Design of Architectural Structures” WeChat exchange group to discuss the application of cutting-edge technologies such as digitalization and intelligence in the architectural design industry.We also welcome like-minded partners to join us and do something fun together.We will bring you more surprises in the future, so follow our official account!


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…