Grasshopper-based special-shaped metal roof purlin and purlin holder blanking and production method

By using Grasshopper for parametric design and visual programming of purlins and purlin brackets, the problem of low efficiency in traditional material cutting methods has been solved, enabling efficient and automated production of irregularly shaped metal roofs.

CN118981308APending Publication Date: 2024-11-19THE THIRD CONSTR OF CHINA CONSTR EIGHTH ENG BUREAU
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410871726.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-11-19

AI Technical Summary

Technical Problem

Traditional Tekla cutting methods are inefficient in designing and optimizing purlins and purlin supports for irregularly shaped metal roofs, making it difficult to meet the needs of complex buildings.

Method used

Grasshopper is used for parametric and visual programming. By automatically generating solid models, detailed drawings and Excel data of purlins and purlin brackets, and combining collision detection and automated production, the material cutting process of purlins and purlin brackets is optimized.

Benefits of technology

This significantly improves the efficiency and accuracy of purlin and purlin support material cutting, shortens cutting time, and enables automated production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118981308A_ABST
    Figure CN118981308A_ABST
Patent Text Reader

Abstract

The invention provides a Grasshopper-based special-shaped metal roof purlin and purlin holder blanking and production method. The Grasshopper-based special-shaped metal roof purlin and purlin holder blanking and production method comprises the following steps: opening a Rhino model containing a metal roof purlin line model; loading a compiled battery pack; setting an initial parameter value and selecting a specific model in Rhino as an initial condition; operating the battery pack, and automatically generating a solid model, a deepened map and Excel data of the purlin and the purlin holder; combining the generated entity model with an original model and then carrying out collision detection; and according to the generated plane deepening graph, purlins and purlin supports are machined, and according to generated Excel data, the generated Excel data are directly input into a steel machining machine to achieve automatic production. According to the method, the blanking efficiency and accuracy of the metal roof structure are greatly improved in a parameterized and visual programming mode, and the blanking time is greatly shortened by designing and optimizing the blanking and production system of the purlins and the purlin supports through Grasshopper.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of metal roofs, and in particular relates to a Grasshopper-based cutting and production method for special-shaped metal roof purlins and purlin brackets. Background Art

[0002] Grasshopper is a visual programming tool based on Rhino software, which can help users design and generate complex 3D models through a graphical interface. In the field of architecture and structural design, Grasshopper has become a very popular tool that can be used to design and optimize various architectural elements, including roof purlins and purlin brackets. Special-shaped hyperbolic metal roofs are gradually adopted by architectural designers who pursue beauty, and are widely used in the roof structures of landmark buildings such as airports and stadiums. When constructing special-shaped metal roofs, due to the hyperbolic structure, the lengths, angles and even cross-sectional types of the purlins and purlin brackets as supporting structures are different. This requires considering the complexity of cutting and production of purlins and purlin brackets. The traditional Tekla cutting method takes a lot of time to model and draw, which is not efficient. Summary of the invention

[0003] In view of the deficiencies in the prior art, the present invention provides a method for cutting and producing special-shaped metal roof purlins and purlin brackets based on Grasshopper. By using Grasshopper to design and optimize the cutting and production system of purlins and purlin brackets, the cutting time can be greatly improved.

[0004] The present invention achieves the above technical objectives through the following technical means.

[0005] A Grasshopper-based cutting and production method for special-shaped metal roof purlins and purlin brackets, including the following processes: S1: Open the Rhino model containing the metal roof purlin line form.

[0006] S2: Open Grasshopper (Rhino's built-in visual programming plug-in) and load the programmed battery pack; S3: Set initial parameter values ​​in Grasshopper and select a specific model in Rhino as initial conditions; S4: Run the Grasshopper battery pack to automatically generate the solid model, detailed drawings and Excel data of the purlins and purlin brackets; S5: Combine the generated solid model with the original model and perform collision detection to find problems and make adjustments in advance; S6: Process the purlins and purlin supports according to the generated plane detail drawing. The generated Excel data can be directly input into the steel processing machinery to realize automated production.

[0007] Furthermore, in S3, the initial parameter values ​​include purlin cross-section parameters, purlin opening parameters, purlin bracket cross-section parameters, purlin bracket position parameters, and purlin bracket opening parameters; the Rhino model used as the initial condition includes the center lines of the upper and lower surfaces of the purlin, the ridge dividing line, the bottom support surface of the purlin bracket, and the sorting direction line.

[0008] Furthermore, the specific process of S4 is as follows: S4.1: Sort the center lines of the upper and lower surfaces of the purlins according to the sorting direction line; S4.2: Create the purlin section profile according to the purlin section parameters, and determine the purlin section orientation by its relative position to the ridge line; S4.3: Solid loft the purlins through the purlin lines and purlin sections to obtain Solid-LT; S4.4: Connect the starting and ending points of the upper and lower surface lines of the purlin respectively to obtain the initial positions of the purlin supports at both ends, and the whole constitutes a small portal steel frame; S4.5: Construct the drawing plane of each purlin: the upper surface line of the purlin and the purlin support line at one end form a plane Plane-1 through Line+Line cells; S4.6: Determine whether the purlin bracket is located on the side or bottom surface and move the centerline of the purlin bracket accordingly; S4.7: Find the intersection point between the purlin support line and the bottom support surface of the purlin support, and obtain the index values ​​of the intersecting purlin support and the bottom support surface of the purlin support in the original data list; S4.8: Test whether repair of the purlin bottom support surface is necessary; S4.9: Connect the intersection of the purlin bracket and the upper surface of the main purlin with the end point of the purlin bracket away from the intersection to obtain the final purlin bracket centerline Curve-LT-A and Curve-LT-B; S4.10: Perform physical lofting of the purlin according to the purlin cross-sectional parameters and the purlin center lines Curve-LT-A and Curve-LT-B; S4.11: Use the bottom support surface of the purlin to cut the purlin solid to obtain the final purlin solids Solid-LT-A and Solid-LT-B; S4.12: According to the number of purlins, establish the same number of plane matrix grids and obtain the center point of each rectangle; S4.13: Use the Orient battery to relocate the purlin centerline, purlin solid model, purlin centerline at both ends, and purlin solid model from the origin of the drawing plane to the center point of the drawing frame; S4.14: Open connection holes on the purlins and purlin brackets according to the opening parameters; S4.15 Select the corresponding purlin model line in the model according to the purlin opening type, and open the tie rod connection hole on the purlin entity according to the opening parameters and the relative position with the purlin model line; S4.16: Add plane annotations to Curve-LTD-Draw, Curve-LT-A-Draw, and Curve-LT-B-Draw, including length, angle, and point marks; S4.17: Establish a point coordinate table, including the point mark name and the corresponding coordinates; S4.18: Add textual notes, including purlin number, purlin section type, and purlin orientation notes; S4.19: Read the processing data of purlins and write them into Excel; read the processing data of purlin supports and write them into Excel; S4.20: Combine the generated solid model with the original model and perform collision detection to detect problems in advance and make adjustments; S4.21: Process the purlins and purlin brackets according to the generated plan. The generated Excel data can be directly input into the steel processing machinery to realize automated production.

[0009] Furthermore, in S4.7, the tree structure of the intersection is first obtained by finding the intersection of the purlin support line and the bottom support surface of the purlin support, then the empty data is deleted, and the path of the tree data after deleting the empty data is read, and finally, all the numbers in the path data are read using a regular expression to obtain the index values ​​of the intersecting purlin support and the bottom support surface of the purlin support in the original data list.

[0010] Furthermore, in S4.8, in the list of purlin entities, use the Cull Index command and delete the data with intersections according to the index value, check the results, and if there are remaining values, the bottom support surface needs to be repaired. After the repair is completed, rerun the battery pack program.

[0011] Furthermore, the specific process of S4.13 is: obtain the x-direction vector Plane-1-x of Plane-1, and use it as the x-direction vector of the drawing plane Plane-Draw, obtain the z-direction vector Plane-1-z of Plane-1, calculate the cross product of Plane-1-x and Plane-1-z, and use the obtained vector as the y-direction vector of Plane-Draw, recorded as Plane-Draw-y, construct the drawing plane Plane-Draw through Plane-1-x and Plane-Draw-y, and after repositioning the drawing plane Plane-Draw to the center point of the drawing frame, obtain the center line of the purlin positioned on the plane, the center lines of the purlin supports at both ends, the purlin solid model, and the purlin support solid model.

[0012] Furthermore, in the S4.15, the types of tie rod holes are divided into: three holes in the middle, two holes in the middle, one hole A and one hole B, two holes in the middle, one hole B, two holes in the middle, and four holes in the middle; in order to maintain the original data structure, first obtain the ID of the purlin lines in the list of all purlins and the purlin lines that need to be opened in the model, then convert the ID into a text type, and obtain the index of the purlin line that needs to be opened in the purlin line list through the Member Index battery, and then obtain the purlin that needs to be opened according to the index in the list of Curve-LTD-Draw, the center line of the lower surface of the purlin repositioned to the drawing frame, create a columnar model according to the opening parameters, and then perform Boolean operation with the purlin solid model to obtain the purlin solid after opening.

[0013] Furthermore, in S4.19, the data categories include number, length, hole spacing, vertex X, vertex Y, vertex Z, bottom point X, bottom point Y, bottom point Z.

[0014] Furthermore, in the S4.19, among the data that need to be read, the length and point coordinates are read through the model line length and the coordinates of the two end points, which are consistent with the Curve-LTD data structure and do not need to adjust the data structure. The number, type, specification, and hole spacing need to construct the same data structure as the rest of the data. All categories of data are combined using the Merge cell and matrix transposed to obtain the data required to be written in Excel format.

[0015] The present invention has the following beneficial effects: The present invention utilizes parametric and visual programming methods to greatly improve the efficiency and accuracy of cutting metal roof structures. By using Grasshopper to design and optimize the cutting and production systems of purlins and purlin brackets, the cutting time can be greatly shortened. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 This is a flow chart of the cutting and production method of special-shaped metal roof purlins and purlin brackets based on Grasshopper according to the present invention; Figure 2 A schematic diagram of the construction principle steps of the Grasshopper battery pack; Figure 3 This is a diagram of the Grasshopper battery pack interface; Figure 4 This is the generated solid model drawing of purlins and purlin supports. DETAILED DESCRIPTION

[0017] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments, but the protection scope of the present invention is not limited thereto.

[0018] The present invention discloses a Grasshopper-based cutting and production method for special-shaped metal roof purlins and purlin brackets, which automatically generates the data required for purlin and purlin bracket processing through a battery pack written in Grasshopper. Figure 1 , including the following process: S1: Open the Rhino model containing the metal roof purlin line form.

[0019] S2: Open Grasshopper (Rhino's built-in visual programming plug-in) and load the programmed battery pack; S3: Set initial parameter values ​​in Grasshopper and select a specific model in Rhino as initial conditions; The initial parameter values ​​include purlin cross-section parameters, purlin opening parameters, purlin bracket cross-section parameters, purlin bracket position parameters (located on the side or bottom of the purlin), and purlin bracket opening parameters; the Rhino model used as the initial condition includes the center lines of the upper and lower surfaces of the purlin (denoted as Curve-LTU, Curve-LTD), the ridge dividing line, the bottom support surface of the purlin bracket (denoted as Surface-DM), and the sorting direction line (denoted as Curve-PX).

[0020] S4: Run the Grasshopper battery pack to automatically generate the solid model, detailed drawing and Excel data of the purlins and purlin brackets, refer to Figure 2 , 3 、4. The specific process is as follows: S4.1: Sort the center lines of the upper and lower surfaces of the purlins according to the sorting direction line: First, use the Sort AlongCurve cell to reasonably sort the upper surface lines of the purlins according to the sorting direction line, then take the midpoints of the sorted upper surface lines, connect them into a polyline, and use this polyline as the sorting line to sort the lower surface lines of the purlins to maintain the matching order of the upper and lower surface lines; S4.2: Create the purlin section profile according to the purlin section parameters, and determine the purlin section orientation (C-steel opening direction) by its relative position to the ridge line; S4.3: Solid loft the purlins through the purlin lines and purlin sections to obtain Solid-LT; S4.4: Connect the starting and ending points of the upper and lower surface lines of the purlin respectively to obtain the initial positions of the purlin supports at both ends, and the whole constitutes a small portal steel frame; S4.5 Construct the drawing plane of each purlin: the upper surface line of the purlin and the purlin support line at one end form a plane Plane-1 through Line+Line cells; S4.6 Determine whether the purlin bracket is located on the side or bottom surface and move the centerline of the purlin bracket accordingly; S4.7 Find the intersection of the purlin support line and the bottom support surface of the purlin support, and obtain the index value of the intersecting purlin support and the bottom support surface of the purlin support in the original data list: first, obtain the tree structure of the intersection by finding the intersection of the purlin support line and the bottom support surface of the purlin support, then delete the empty data, and read the path of the tree data after deleting the empty data, and finally use the regular expression to read all the numbers in the path data to obtain the index value of the intersecting purlin support and the bottom support surface of the purlin support in the original data list; S4.8 Test whether the bottom support surface of the purlin needs to be repaired: Use the Cull Index command in the list of purlin entities and delete the data with intersections according to the index value. Check the results. If there are remaining values, it indicates that the bottom support surface needs to be repaired. After the repair is completed, re-run the battery pack program; S4.9 Connect the intersection of the purlin bracket and the upper surface of the main purlin with the end point on the purlin bracket farthest from the intersection to obtain the final purlin bracket center lines Curve-LT-A and Curve-LT-B: Adjust the data structure, first construct the same structure as the input data, and fill all contents with Null, and then replace the purlin bracket line with the intersection point on the upper surface of the main purlin into the data structure according to the index value; S4.10 Perform physical lofting of the purlin according to the purlin cross-sectional parameters and the purlin center lines Curve-LT-A and Curve-LT-B; S4.11 Use the bottom support surface of the purlin to cut the purlin solid to obtain the final purlin solids Solid-LT-A and Solid-LT-B; S4.12 Establish the same number of plane matrix grids (frames) according to the number of purlins and obtain the center point of each rectangle; S4.13 Use the Orient cell to relocate the purlin centerline, purlin solid model, purlin centerline at both ends, and purlin solid model from the origin of the drawing plane to the center point of the drawing frame: Get the x-direction vector Plane-1-x of Plane-1, and use it as the x-direction vector of the drawing plane Plane-Draw. Get the z-direction vector Plane-1-z of Plane-1, calculate the cross product of Plane-1-x and Plane-1-z, and use the obtained vector as the y-direction vector of Plane-Draw, recorded as Plane-Draw-y. Construct the drawing plane Plane-Draw through Plane-1-x and Plane-Draw-y. After relocating the drawing plane Plane-Draw to the center point of the drawing frame, obtain the purlin center line (Curve-LTD-Draw) located on the plane, the purlin support center lines at both ends (Curve-LT-A-Draw, Curve-LT-B-Draw), the purlin solid model (Solid-LT), and the purlin support solid model. S4.14 Open connection holes on the purlins and purlin brackets according to the opening parameters; since the purlin brackets and purlins are not necessarily perpendicular, the hole type is an oblong hole to eliminate the deviation of the connection position caused by the angle; S4.15 Select the corresponding purlin model line in the model according to the purlin opening type, and open the tie rod hole on the purlin entity according to the opening parameters and the relative position with the purlin model line; The types of tie rod holes are divided into: three holes in the middle, two holes in the middle, one hole A and one hole B, two holes in the middle, one hole B and two holes, two holes B and one hole, and four holes in the middle. In order to maintain the original data structure, first obtain the ID of the purlin line in the model containing all purlin lists and select the purlin line that needs to be opened, then convert the ID into a text type, and then use the Member Index battery to obtain the index of the purlin line that needs to be opened in the purlin line list, and then obtain the purlin that needs to be opened according to the index in the list of Curve-LTD-Draw, the center line of the lower surface of the purlin relocated to the drawing frame, create a columnar model according to the opening parameters, and then perform Boolean operations with the purlin solid model to obtain the purlin solid after opening. S4.16 Add plane annotations to Curve-LTD-Draw, Curve-LT-A-Draw, and Curve-LT-B-Draw, including length, angle, and point marks; S4.17 Establish a point coordinate table, including the point mark name and the corresponding coordinates; S4.18 Add textual annotations, including purlin number, purlin section type, and purlin orientation annotations; S4.19 Read the processing data of purlins and write them into Excel; read the processing data of purlin supports and write them into Excel; Among them, the data categories include number, length, hole spacing, vertex X, vertex Y, vertex Z, bottom point X, bottom point Y, bottom point Z; Among the data that need to be read, the length and point coordinates are read through the model line length and the coordinates of the two end points, which are consistent with the Curve-LTD data structure and do not need to be adjusted. The number, type, specification, and hole spacing need to construct the same data structure as the rest of the data; taking the number as an example, the specific method is: use the TreeStatistics cell to read the path and number of the Curve-LTD tree data structure, use the Duplicate Data cell to copy the number value to the same number as Curve-LTD, then read the copied tree structure path, and then use the ReplacePaths cell to replace the copied path with the Curve-LTD path to complete the construction of the data structure. After using the same construction method for the remaining category data, combine all category data using the Merge cell and perform a matrix transposition transformation to obtain the data required to be written in Excel format; S4.20 Combine the generated solid model with the original model and perform collision detection to detect problems in advance and make adjustments; S4.21 Process purlins and purlin supports according to the generated plan. The generated Excel data can be directly input into steel processing machinery to realize automated production.

[0021] S5: Combine the generated solid model with the original model and perform collision detection to detect problems in advance and make adjustments.

[0022] S6: Process the purlins and purlin supports according to the generated plane detail drawing. The generated Excel data can be directly input into the steel processing machinery to realize automated production.

[0023] The embodiments are preferred implementations of the present invention, but the present invention is not limited to the above-mentioned implementations. Any obvious improvements, substitutions or modifications that can be made by those skilled in the art without departing from the essential content of the present invention belong to the protection scope of the present invention.

Claims

1. A method for cutting and producing special-shaped metal roof purlins and purlin brackets based on Grasshopper, characterized in that: The process includes the following: S1: Open the Rhino model containing the metal roof purlin line form; S2: Open Grasshopper and load the programmed battery pack; S3: Set initial parameter values ​​in Grasshopper and select a specific model in Rhino as initial conditions; S4: Run the Grasshopper battery pack to automatically generate the solid model, detailed drawings and Excel data of the purlins and purlin brackets; S5: Combine the generated solid model with the original model and perform collision detection to find problems and make adjustments in advance; S6: Process the purlins and purlin supports according to the generated plane detail drawing. The generated Excel data can be directly input into the steel processing machinery to realize automated production.

2. The method for cutting and producing special-shaped metal roof purlins and purlin brackets based on Grasshopper according to claim 1 is characterized in that: In S3, the initial parameter values ​​include purlin section parameters, purlin opening parameters, purlin bracket section parameters, purlin bracket position parameters, and purlin bracket opening parameters; the Rhino model used as the initial condition includes the center lines of the upper and lower surfaces of the purlin, the ridge dividing line, the bottom support surface of the purlin bracket, and the sorting direction line.

3. The method for cutting and producing special-shaped metal roof purlins and purlin brackets based on Grasshopper according to claim 1 is characterized in that: The specific process of S4 is as follows: S4.1: Sort the center lines of the upper and lower surfaces of the purlins according to the sorting direction line; S4.2: Create the purlin section profile according to the purlin section parameters, and determine the purlin section orientation by its relative position to the ridge line; S4.3: Perform solid lofting of the purlins through the purlin lines and purlin sections to obtain a solid model of the purlins; S4.4: Connect the starting and ending points of the upper and lower surface lines of the purlin respectively to obtain the initial positions of the purlin supports at both ends, and the whole constitutes a small portal steel frame; S4.5: Construct the drawing plane of each purlin: the upper surface line of the purlin and the purlin support line at one end form a plane Plane-1 through Line+Line cells; S4.6: Determine whether the purlin bracket is located on the side or bottom surface and move the centerline of the purlin bracket accordingly; S4.7: Find the intersection point between the purlin support line and the bottom support surface of the purlin support, and obtain the index values ​​of the intersecting purlin support and the bottom support surface of the purlin support in the original data list; S4.8: Test whether repair of the purlin bottom support surface is necessary; S4.9: Connect the intersection of the purlin bracket and the upper surface of the main purlin with the end point of the purlin bracket away from the intersection to obtain the final purlin bracket centerline; S4.10: Perform physical layout of the purlin according to the purlin cross-sectional parameters and the purlin centerline; S4.11: Use the bottom support surface of the purlin bracket to cut the purlin bracket solid body to obtain the final purlin bracket solid body; S4.12: According to the number of purlins, establish the same number of plane matrix grids and obtain the center point of each rectangle; S4.13: Use the Orient battery to relocate the purlin centerline, purlin solid model, purlin centerline at both ends, and purlin solid model from the origin of the drawing plane to the center point of the drawing frame; S4.14: Open connection holes on the purlins and purlin brackets according to the opening parameters; S4.15 Select the corresponding purlin model line in the model according to the purlin opening type, and open the tie rod connection hole on the purlin entity according to the opening parameters and the relative position with the purlin model line; S4.16: Add plane annotations to the purlin centerline and the purlin centerline at both ends, including length, angle, and point marks; S4.17: Establish a point coordinate table, including the point mark name and the corresponding coordinates; S4.18: Add textual notes, including purlin number, purlin section type, and purlin orientation notes; S4.19: Read the processing data of purlins and write them into Excel; read the processing data of purlin supports and write them into Excel; S4.20: Combine the generated solid model with the original model and perform collision detection to detect problems in advance and make adjustments; S4.21: Process the purlins and purlin brackets according to the generated plan. The generated Excel data can be directly input into the steel processing machinery to realize automated production.

4. The method for cutting and producing special-shaped metal roof purlins and purlin brackets based on Grasshopper according to claim 3 is characterized in that: In S4.7, first, the intersection of the purlin support line and the bottom support surface of the purlin support is obtained to obtain a tree structure of the intersection, then the empty data is deleted, and the path of the tree data after deleting the empty data is read, and finally, a regular expression is used to read all the numbers in the path data to obtain the index values ​​of the intersecting purlin support and the bottom support surface of the purlin support in the original data list.

5. The method for cutting and producing special-shaped metal roof purlins and purlin brackets based on Grasshopper according to claim 3 is characterized in that: In S4.8, use the Cull Index command in the list of purlin entities and delete the data with intersections according to the index value, check the results, and if there are remaining values, the bottom support surface needs to be repaired. After the repair is completed, rerun the battery pack program.

6. The Grasshopper-based cutting and production method for special-shaped metal roof purlins and purlin brackets according to claim 3 is characterized in that: The specific process of S4.13 is: obtain the x-direction vector Plane-1-x of Plane-1, and use it as the x-direction vector of the drawing plane Plane-Draw, obtain the z-direction vector Plane-1-z of Plane-1, calculate the cross product of Plane-1-x and Plane-1-z, and use the obtained vector as the y-direction vector of Plane-Draw, recorded as Plane-Draw-y, construct the drawing plane Plane-Draw through Plane-1-x and Plane-Draw-y, and after repositioning the drawing plane Plane-Draw to the center point of the drawing frame, obtain the center line of the purlin positioned on the plane, the center lines of the purlin supports at both ends, the purlin solid model, and the purlin support solid model.

7. The method for cutting and producing special-shaped metal roof purlins and purlin brackets based on Grasshopper according to claim 3 is characterized in that: In the S4.15, the types of tie rod holes are divided into: three holes in the middle, two holes in the middle, one hole A and one hole B, two holes in the middle, one hole B, two holes in the middle, one hole B, and four holes in the middle; in order to maintain the original data structure, first obtain the ID of the purlin lines in the list of all purlins and the purlin lines that need to be opened in the model, then convert the ID into a text type, and obtain the index of the purlin line that needs to be opened in the purlin line list through the MemberIndex battery, and then obtain the purlin that needs to be opened according to the index in the list of the center line of the lower surface of the purlin repositioned to the frame, create a columnar model according to the opening parameters, and then perform Boolean operation with the purlin solid model to obtain the purlin solid after opening.

8. The method for cutting and producing special-shaped metal roof purlins and purlin brackets based on Grasshopper according to claim 3 is characterized in that: In S4.19, the data categories include number, length, hole spacing, vertex X, vertex Y, vertex Z, bottom point X, bottom point Y, bottom point Z.

9. The method for cutting and producing special-shaped metal roof purlins and purlin brackets based on Grasshopper according to claim 3, characterized in that: In S4.19, among the data that need to be read, the length and point coordinates are read through the model line length and the coordinates of the two end points, which are consistent with the data structure of the center line of the lower surface of the purlin. There is no need to adjust the data structure. The number, type, specification, and hole spacing need to construct the same data structure as the rest of the data. All categories of data are combined using the Merge cell, and a matrix transpose transformation is performed to obtain the data required to be written in Excel format.