A construction drawing model rebuilding method based on a grasshopper platform
By automatically generating 3D models of irregular steel structures using the Grasshopper platform and C# programming technology, the problem of low efficiency in traditional AutoCAD manual modeling is solved, enabling rapid and accurate reconstruction of construction drawing models and meeting the bidding and load analysis needs of construction units.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHEJIANG JINGGONG STEEL BUILDING GRP
- Filing Date
- 2022-11-29
- Publication Date
- 2026-07-10
AI Technical Summary
In irregular steel structure buildings, the traditional manual modeling method using AutoCAD software is inefficient and prone to errors, especially when there are a large number of members, making it difficult to meet the needs of construction units for rapid bidding and load analysis.
The Grasshopper platform's construction drawing model reconstruction method is adopted. A model reconstruction battery plugin is developed using C# programming technology. By inputting node table and unit table data, a 3D model is automatically generated and exported to AutoCAD. At the same time, the cross-sectional information of each unit is automatically assigned to the layer, improving the modeling speed and accuracy.
It significantly improves the speed and accuracy of modeling irregular steel structures, reduces human error, provides more time for bidding and construction plan preparation, and improves the accuracy of construction plans.
Smart Images

Figure CN115730374B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of irregular steel structure building technology, specifically a method for rebuilding construction drawing models based on the Grasshopper platform. Background Technology
[0002] When producing structural construction drawings for irregular steel structure buildings, design institutes often use node coordinate tables and element coordinate tables, or node coordinate tables and floor plans. If the design institute does not provide a line model, the construction unit needs to rebuild the model during the bidding stage and prepare construction plans such as load analysis. Previously, construction units used traditional AutoCAD software to manually create nodes and member elements. This traditional method was not only slow and inefficient, but also prone to errors when there were many members.
[0003] Grasshopper is a low-code plugin for creating various parametric models based on the Rhino platform. It primarily interacts through a battery-based interface with input and output terminals, with the main computations handled internally. Compared to traditional modeling tools, Grasshopper's biggest advantage is its ability to issue more advanced and complex logical modeling commands to the computer, enabling it to automatically generate model results based on predetermined algorithms. The generated line models also include cross-sectional layer information (matching the cross-sectional specifications of the structural members in the construction drawings), ensuring accuracy and efficiency. Summary of the Invention
[0004] To address the technical problems existing in the prior art, this invention provides a method for rebuilding construction drawing models based on the Grasshopper platform. It utilizes C# programming technology to develop a model rebuilding plugin, which quickly generates a 3D model by inputting node table data and unit table data or a floor plan. The 3D model is then exported to AutoCAD, and the cross-sectional information of each unit is automatically assigned to a layer. This significantly improves efficiency in handling repetitive modeling tasks and reduces human error caused by manual modeling.
[0005] To achieve the above objectives, the present invention adopts the following technical solution: a construction drawing model re-construction technology based on the Grasshopper platform, comprising:
[0006] 1) Import the construction drawing node table data and unit table data or the floor plan into Rhino software;
[0007] 2) Pick up the node table data and unit table data or plan layout data into the model rebuild cell according to the following steps;
[0008] 2.1) The construction drawing model reconstruction battery plugin based on the Grasshopper platform includes three model reconstruction batteries and one Grasshopper-AutoCAD communication battery. All four batteries are developed using C# programming technology, and the model reconstruction is implemented using a self-developed algorithm.
[0009] 2.2) The three model rebuilding cells are: model rebuilding with node coordinate table + cell table, model rebuilding with node coordinate table + plan view, and model rebuilding with node coordinate in-situ annotation; the Grasshopper and AutoCAD communication cell is: output to CAD;
[0010] 2.3) Extract the node table data into the node table data at the input end of the model's rebuilt battery;
[0011] 2.4) Pick up the unit table data or plan layout data into the unit table data or plan layout data of the model rebuild battery input terminal;
[0012] 2.5) Select the appropriate number of columns for the input table data. The internal algorithm of the model rebuild battery plug-in program sorts the data according to the given number of columns and arranges them in order so that the input node data corresponds one-to-one with the node data at both ends in the unit table data. Alternatively, for the input plan layout, the internal algorithm of the model rebuild battery plug-in program realizes a one-to-one correspondence according to the unit number and straight line relationship corresponding to the given plan layout.
[0013] 3) Connect the battery output unit number, node number, and unit end number into a 3D model according to the following steps. This step is applicable to rebuilding the model using the node coordinate table + unit table. The other two batteries can be directly output as 3D models.
[0014] 3.1) Based on the data from the battery output of the model reconstruction (including node number, node coordinates, unit node number 1, and unit node number 2), the coordinate data of each point is matched to the node number using Grasshopper's Key / Value Search module.
[0015] 3.2) Based on the matching data generated in the previous step, use Grasshopper's Line (two-point line) operator module to generate a 3D line model;
[0016] 4) Output the generated 3D model to AutoCAD, and automatically assign the cross-sectional information of each unit to the layer.
[0017] Furthermore, in step 1), the node data table and unit data table given in the construction drawings are directly opened in Rhino software in DWG format in AutoCAD and automatically imported.
[0018] Furthermore, in step 2), the node table data and unit table data or floor plan data are picked up using Grasshopper's GUID calculator module. The picked GUID data is filtered for text and lines by the model rebuild battery plugin, and the table headers are automatically filtered.
[0019] Furthermore, the node table data and cell table data in step 2) can be output to Excel. When there are missing items in the node table data or cell table data, an error message can be given, indicating the specific missing location.
[0020] Furthermore, in step 4), based on the cross-sectional specification data of the battery module output and the 3D line model data generated in step 3), the output to CAD battery module, which is developed using C# programming technology, inputs the 3D line model data to the Geometry input of the output to CAD battery module, then inputs the cross-sectional specification data to the Layers input of the output to CAD battery module, and finally clicks the Active button to output the 3D line model with the cross-sectional layer to AutoCAD.
[0021] Compared with existing technologies, this invention provides a method for reconstructing construction drawing models based on the Grasshopper platform. This method uses node coordinate tables and unit tables or floor plans from the construction drawings as the main input parameters. A built-in algorithm program written in C# quickly generates a 3D model, which can then be exported to AutoCAD. Simultaneously, it automatically assigns cross-sectional information for each unit to a layer. This invention improves the modeling speed and accuracy of irregular steel structures, significantly reduces repetitive modeling work, and provides more time and convenience for subsequent load analysis and construction plan preparation during bidding, thereby improving the accuracy of the construction plan. Attached Figure Description
[0022] Figure 1 This is a flowchart of a method according to an embodiment of the present invention;
[0023] Figure 2 The present invention provides a node coordinate table, a unit coordinate table, a plan view, and an AutoCAD drawing with in-situ coordinate annotations, wherein (a) is an AutoCAD drawing of the node coordinate table and the unit table, (b) is an AutoCAD drawing of the node coordinate table and the plan view, and (c) is an AutoCAD drawing of the node coordinate in-situ annotations and the plan view.
[0024] Figure 3 This is a self-compiled battery plugin of the present invention, wherein (a) is a battery model rebuilt from node coordinate table + unit table, (b) is a battery model rebuilt from node coordinate table + plan view, (c) is a battery model rebuilt from node coordinate in-situ annotation, and (d) is a battery output to CAD.
[0025] Figure 4 This is a Grasshopper battery pack connection diagram according to an embodiment of the present invention, wherein (a) is a battery pack connection diagram of the rebuilt model with node coordinate table + cell table, (b) is a battery pack connection diagram of the rebuilt model with node coordinate table + plan view, and (c) is a battery pack connection diagram of the rebuilt model with node coordinate in-situ annotation.
[0026] Figure 5 The right-click hiding function of the self-made battery plugin in this embodiment of the invention is shown, wherein (a) is the selection of the number of columns in the node table, (b) is the selection of the number of columns in the unit table, and (c) is the output of the node data table and the unit data table.
[0027] Figure 6 The above are preview 3D model diagrams of the data stream in Rhino according to an embodiment of the present invention. Among them, (a) is a preview 3D model diagram generated by rebuilding the battery pack from the node coordinate table and cell table, (b) is a preview 3D model diagram generated by rebuilding the battery pack from the node coordinate table and planar diagram, and (c) is a preview 3D model diagram generated by rebuilding the battery pack from the node coordinate table with in-situ annotation.
[0028] Figure 7 This invention relates to three methods for reconstructing models and outputting the data to a 3D model drawing in AutoCAD.
[0029] Figure 8 This is a diagram showing the data output to an Excel spreadsheet according to an embodiment of the present invention;
[0030] Figure 9 This is a diagram illustrating an error message from an embodiment of the present invention. Detailed Implementation
[0031] Reference Figures 1 to 9 The following is a further description of a specific implementation method for reconstructing construction drawing models based on the Grasshopper platform according to the present invention.
[0032] This invention provides a construction drawing model re-build battery plugin based on the Grasshopper platform. The plugin includes three model re-build batteries and one Grasshopper-AutoCAD communication battery. All four batteries are developed using C# programming technology, and a self-developed algorithm is used to implement model re-build. The specific process of this invention's construction drawing model re-build method based on the Grasshopper platform is as follows: Figure 1 As shown, the detailed steps are as follows.
[0033] like Figure 2 The images show drawings for three different reconstruction models, each created using a different method.
[0034] like Figure 3As shown, this invention uses three model rebuilding batteries and one Grasshopper and AutoCAD communication battery. Figure 4 (a) The battery pack is suitable for Figure 2 (a) Drawings, Figure 4 (b) The battery pack is suitable for Figure 2 (b) Drawings, Figure 4 (c) Battery pack is suitable for Figure 2 (c) Drawings; Figure 4 All core batteries used are Figure 3 The battery shown.
[0035] like Figure 4 As shown in (a), when rebuilding a battery pack model using a node coordinate table and a cell table, the node coordinate table and cell table in Rhino space are first picked up using Grasshopper's built-in battery guide. After completion, as shown in (a), Figure 5 (a) In the node coordinate table + element table of the rebuilt battery model, select a node table with 4 columns, such as... Figure 5 (b) Select 5 columns for the unit table. Then, check if the unit of the node table is mm or m. The default model unit in the node coordinate table + unit table rebuilt model battery is m. When it is mm, modify the input parameter to 1. At this point, the model parameter input is complete. Based on the given data, the node coordinate table + unit table rebuilt model battery internally outputs the following data through a self-developed algorithm: node coordinates, node number, unit node 1, unit node 2, and unit cross-section table. Input the node coordinates from the output end to the Values input of the Grasshopper's built-in Key / Value Search battery, the node number to the Keys input of the Grasshopper's built-in Key / Value Search battery, and unit node 1 to the Search input of the Grasshopper's built-in Key / Value Search battery. Repeat the above connections, but input unit node 2 to the Search input of the Grasshopper's built-in Key / Value Search battery. Input the Result outputs from the two Key / Value Search batteries to the StartPoint and EndPoint inputs of the Grasshopper's built-in Line battery, respectively. After completing this step, a preview 3D model will be generated in Rhino space. You can check if the generated model is correct. Figure 6(a). Finally, input the node coordinate table + element table from the output end of the rebuilt model cell to the Layers input end of the CAD cell, and input the Line output end of the Grasshopper's built-in Line cell to the Geometry input end of the CAD cell. After completion, click the Active button. The CAD cell will automatically start the AutoCAD program and output the 3D model data with cross-sections to the AutoCAD model space, such as... Figure 7 As shown. The node coordinate table + cell table can be used to rebuild the battery model and output node table data and cell table data to Excel, such as... Figure 5 (c) and Figure 8 As shown.
[0036] like Figure 4 As shown in (b), when rebuilding a battery pack model using a node coordinate table and a plan view, first, the node coordinate table in Rhino space and the line and cell number data on the plan view are picked up using Grasshopper's built-in battery guide. After completion, as shown... Figure 5 (a) In the node coordinate table + plan view rebuilt model battery, select a node table with 4 columns. Locate the node location point number 101 on the drawing, such as... Figure 2 (b) Enlarged view of node number. Fill the number 101 into the Grasshopper built-in battery Panel. Connect the Panel output to the node positioning point number input of the node coordinate table + planar view rebuilt model battery. The corresponding positioning point coordinates are picked in Rhino space using the Grasshopper built-in battery Point, and the output is connected to the node positioning point input of the coordinate table + planar view rebuilt model battery. Then, check if the unit of the node table is mm or m. The default model unit in the node coordinate table + planar view rebuilt model battery is m. When it is mm, modify the input parameter to 1. At this point, the model parameter input is complete. Based on the given data, the coordinate table + planar view rebuilt model battery internally implements the following data output through a self-written algorithm: unit number, original coordinate node, processed coordinate node, and model line model. When this step is completed, a preview 3D model will be generated in Rhino space. You can check if the generated model is correct, such as... Figure 6(b) During the above process, there may be discrepancies between the element number and the number of model line models. In this case, it is necessary to modify the minimum distance input of the coordinate table + plan view rebuilt model battery. The default minimum distance is 500mm. Adjust the minimum distance to ensure that the element number and the number of model line models are consistent. Input the model line models from the output end of the node coordinate table + element table rebuilt model battery to the Geometry input end of the output to CAD battery, and input the element number from the output end to the Layers input end of the output to CAD battery. After completion, click the Active button. The output to CAD battery will automatically start the AutoCAD program and output the 3D model data with cross-sections to the AutoCAD model space, such as... Figure 7 As shown.
[0037] like Figure 4 As shown in (c), when rebuilding a battery pack with in-situ node coordinate annotations, the coordinates of the in-situ node coordinate annotations in Rhino space, as well as the line and element number data on the planar diagram, are first picked up using Grasshopper's built-in battery guide. The in-situ node coordinate annotation rebuilding battery pack provides the following outputs: original coordinate nodes, processed coordinate nodes, model line model, and element number. Based on the given data, the in-situ node coordinate annotation rebuilding battery pack internally uses a self-developed algorithm to first provide the original coordinate nodes. At this point, the first node coordinate is taken as the node positioning point (474679, 190566, -25094), as shown below. Figure 6 As shown in (c), the coordinates of the node positioning point are picked in Rhino space using Grasshopper's built-in battery Point, and the output is connected to the node positioning point input of the in-situ annotation of the rebuilt model battery. Then, check if the unit of the node table is mm or m. The default model unit in the in-situ annotation of the rebuilt model battery is m. When it is mm, modify the input parameter to 1. At this point, the model parameter input is complete. Upon completion of this step, a preview of the 3D model will be generated in Rhino space, allowing you to check if the generated model is correct. Figure 6 (c) During the above process, there may be discrepancies between the element number and the number of model line models. In this case, it is necessary to modify the minimum distance input terminal of the in-situ annotation of the node coordinate rebuilt model cell. The default minimum distance is 500mm. Adjust the minimum distance to ensure that the element number and the number of model line models are consistent. Input the model line model from the output terminal of the in-situ annotation of the node coordinate rebuilt model cell to the Geometry input terminal of the output to the CAD cell, and input the element number from the output terminal to the Layers input terminal of the output to the CAD cell. After completion, click the Active button. The output to the CAD cell will automatically start the AutoCAD program and output the 3D model data with cross-sections to the AutoCAD model space, such as... Figure 7 As shown.
[0038] In the above-described implementation of this invention, the three self-developed rebuilt battery models all have a certain degree of fault tolerance and prompting function, such as... Figure 9 As shown, it provides a user-friendly interactive environment, greatly simplifying the learning cost for actual users. Users can complete the reconstruction of complex irregular steel structure models simply by following the text instructions.
[0039] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.
Claims
1. A method for reconstructing construction drawing models based on the Grasshopper platform, characterized in that, Includes the following steps: 1) Import the construction drawing node table data and unit table data or the floor plan layout data directly into Rhino software in dwg format; 2) Pick up the node table data and unit table data or plan layout data into the model rebuild cell according to the following steps; 2.1) The construction drawing model reconstruction battery plugin based on the Grasshopper platform includes three model reconstruction batteries and one Grasshopper-AutoCAD communication battery. All four batteries are developed using C# programming technology, and the model reconstruction is implemented using a self-developed algorithm. 2.2) The three model rebuilding cells are: model rebuilding with node coordinate table + cell table, model rebuilding with node coordinate table + plan view, and model rebuilding with node coordinate in-situ annotation; the Grasshopper and AutoCAD communication cell is: output to CAD; 2.3) Extract the node table data into the node table data at the input end of the model's rebuilt battery; 2.4) Pick up the unit table data or plan layout data into the unit table data or plan layout data of the model rebuild battery input terminal; 2.5) Select the appropriate number of columns for the input table data. The internal algorithm of the model rebuild battery plug-in program sorts the data according to the given number of columns and arranges them in order so that the input node data corresponds one-to-one with the node data at both ends in the unit table data. Alternatively, for the input plan layout, the internal algorithm of the model rebuild battery plug-in program realizes a one-to-one correspondence according to the unit number and straight line relationship corresponding to the given plan layout. 3) Connect the battery output unit number, node number, and unit end number into a 3D model according to the following steps. This step is applicable to rebuilding the model using the node coordinate table + unit table. The other two batteries can be directly output as 3D models. 3.1) Based on the battery output data rebuilt from the model, the output data includes node number, node coordinates, unit node number 1, and unit node number 2. The coordinate data of each point is matched to the node number using Grasshopper's Key / Value Search module. 3.2) Based on the matching data generated in the previous step, use Grasshopper's Line two-point line calculator module to generate a 3D line model; 4) Output the generated 3D model to AutoCAD, and automatically assign the cross-sectional information of each unit to the layer.
2. The method for reconstructing construction drawing models based on the Grasshopper platform according to claim 1, characterized in that: In step 1), the node data table and unit data table given in the construction drawings are opened directly in Rhino software in DWG format in AutoCAD and automatically imported.
3. The method for reconstructing construction drawing models based on the Grasshopper platform according to claim 1, characterized in that: In step 2), the node table data and unit table data or floor plan data are picked up using Grasshopper's GUID calculator module. The picked GUID data is filtered for text and lines by the model rebuild battery plugin, and the table headers are automatically filtered.
4. The method for reconstructing construction drawing models based on the Grasshopper platform according to claim 1, characterized in that: In step 2), the node table data and cell table data can be output to Excel. When there are missing items in the node table data or cell table data, an error message can be given, indicating the specific location of the missing items.
5. The method for reconstructing construction drawing models based on the Grasshopper platform according to claim 1, characterized in that: In step 4), based on the cross-sectional specification data of the battery module output and the 3D line model data generated in step 3), the output to CAD battery module is developed using C# programming technology. The 3D line model data is input to the Geometry input of the output to CAD battery module, and the cross-sectional specification data is input to the Layers input of the output to CAD battery module. Finally, the Active button is clicked to output the 3D line model with the cross-sectional layer to the AutoCAD program.