Engineering SHEET: /blog/自己打造midas和yjk接口/ REV: 2025-06-20

Build your own Midas and YJK interfaces

Zhou Wenqi (Venchy) 15 min read

Build your own Midas and YJK interfaces

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

Many days ago, the editor received a Rhino model and hoped to transfer the Rhino model to YJK through YJK-GAMA to generate a YJK model.This operation is a piece of cake for YJK-GAMA.

Image

With the excellent interactive linkage capabilities and spatial structure model modeling capabilities of YJK-GAMA and Rhino, such a complex model can be built in seconds!I thought the delivery was over after the construction was completed.But the editor is still too naive: This model already has a Midas Gen model. How to convert the Midas model to a YJK model?!

Image

I have tried various Midas to YJK model conversion interfaces on the market. Because the models are too complex and prone to various errors, the converted models seem to be unable to be used directly. In fact, this problem is a piece of cake for YJK-GAMA.It just requires some DIY methods. Midas Gen can actually export structural model data.In order to build this model, we first need to export the node data, section data and component data in the model.

Image

Let’s talk about the idea first Let’s take a look at the data structure exported from Midas Gen: The node table contains the node ID and node coordinates; The section table contains all section IDs and related parameters in the model; The component table contains the component’s start and end point IDs, section IDs, corners and other information. In YJK-GAMA, we only need to simply create all the nodes and sections, and then build all the components easily based on the index IDs of the components’ nodes and sections.

Once your ideas are clear, you can start working. The starting point of this process is the model data exported by MIDAS Gen.We first export and store these data into an Excel file.Through YJK-GAMA’s “Read Excel” card, we can obtain all MIDAS model data and then operate on these data.

Image

The first step is to read the data in the node Excel Columns 1, 2, 3, and 4 in the node Excel are the node ID, X-axis coordinate, Y-axis coordinate, and Z-axis coordinate respectively. We can obtain the corresponding node data by extracting the container list card and entering the corresponding container path (the starting point of the GAMA list is 0, so the path of the X coordinate is 1).Then through GAMA’s “Point (XYZ)” card, you can create all the points in the model.

Image

Step 2: Read component data and make line molds

Image

We then use the “Read Excel” card to read the model’s component data into GAMA.Since there are 3801 line units and the rest are area units, we only read 3801 rows in Excel.Columns 9-16 in the Excel table are the node numbers of the components.For line elements, we only need to read two nodes.Through some corresponding list operations, we can get the ID of the starting point and end point of the component, and then use the “Extract List Item” card to get the starting point and end point of the component in the node list using the ID of the node as the index.Then use the “Straight Line (Two Points)” card to create the line mold of the component.

Image

After establishing the line mold of the components, we need to distinguish which components are columns and which components are beams based on the vectors of the columns.Here, beams and columns are grouped mainly through logical judgment cards based on the vectors of the components.

Image

Step 3 Define the cross-section

Image

Similarly, through the “Read Excel” card, we can read the cross-section table of the model.According to this section table, we can make the corresponding section table through the frame section card in GAMA.The consistency of the section order must be ensured here, otherwise the defined sections will be wrong. Step 4: Assign cross-section The read member table contains the ID of each section. We can obtain the sections in the section table based on the ID of the section and use the ID of the member section as an index, and assign it to the corresponding member.

Image

In this way, all member sections are defined. Step 5: Define skinning The data exported from Midas also includes data for area elements.We can construct the corresponding surface unit through the skin function in the upcoming YJK-GAMA1.6.

Image

Image

The surface unit data in Midas also contains the corresponding corner point ID. The corresponding node is also obtained through the corresponding corner point ID, and the edge of the corresponding surface unit is constructed.Create a Mesh through the edges, connect it to the skin, and then connect the skin to the model to achieve the construction of the corresponding skin. Step 6: Generate YJK model After completing the above operations, we can generate a YJK model by generating a YJK model card.The cross-sections of all components in the model are consistent with those in Midas.Skinning and plate elements in Midas are also consistent.

Image

In this way, the interface between our DIY YJK and Midas is completed.The entire interface production process took the editor only half an hour, and it was completely based on a limited number of GAMA cards. It can be said to be very simple and fast.And this process works for a wide variety of models.In addition, this process can also be reversed and exported to Midas through Excel.Friends who are interested can also try this process, maybe you will get unexpected surprises!

Case files can be downloaded through the following link: https://pan.baidu.com/s/19nmVxGNeaN6nglu6peimsg Extraction code: 6ep7 YJK-GAMA has now been upgraded to version 1.5 Join the QQ group and let’s explore together The infinite possibilities of YJK-GAMA!

Image

Contact us “Da Feier”. Join the “Digital Intelligent Design of Building Structures” WeChat exchange group, Let’s communicate and discuss cutting-edge technologies such as digitalization and intelligence Application in the architectural design industry.

Image

We also welcome like-minded partners to join us. Let’s do something fun together.

Image

Next we will bring you more surprises, stay tuned Let’s go public!


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/Gi_S1xjkB5aVm9urtlYCfA

§

评论

COMMENT / REVIEW REQUIRED

LOADING…