Method and system for creating portal frame based on three-dimensional modeling software api interface
The method of automatically generating portal frames through the API interface of 3D modeling software solves the problems of low efficiency and large errors in traditional manual modeling, realizes an efficient and accurate modeling process, adapts to design changes and improves construction quality.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA CONSTR STEEL STRUCTURE ENG CO LTD
- Filing Date
- 2026-01-06
- Publication Date
- 2026-06-05
AI Technical Summary
In existing technologies, the 3D modeling of portal frames relies on manual operation or traditional software, which is cumbersome, inefficient, prone to human error, difficult to adapt to design changes, and affects the accuracy of the model and the construction progress.
By using the API interface of 3D modeling software, the system receives geometric and layout parameters input by the user and automatically generates the main steel frame, roof purlins, and wall purlin systems, achieving fully automated modeling, reducing manual operation, and avoiding errors.
It improves modeling efficiency, ensures model consistency and standardization, adapts to different project needs, reduces labor costs, and enhances the collaborative efficiency of design and construction.
Smart Images

Figure CN122154009A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of 3D modeling technology, and specifically to a method and system for creating portal frames based on 3D modeling software API interfaces. Background Technology
[0002] In the field of steel structure construction engineering, portal frames are widely used in low-rise and multi-story building projects such as industrial plants and warehouses due to their advantages such as simple structural form, clear stress distribution, and convenient construction. Three-dimensional modeling of portal frames is a core prerequisite for subsequent structural analysis, component fabrication, and construction installation; its modeling efficiency and accuracy directly determine the design cycle and engineering quality of the entire project.
[0003] Currently, the modeling of portal frames in the industry generally relies on traditional methods. Most designers still manually build the model and then create the node connections one by one, or use traditional modeling software with limited functions to operate step by step. This approach is not only cumbersome, requiring designers to manually input a large number of component parameters, repeatedly calibrate the spatial position of components, and configure the node connection type one by one, but also consumes a lot of time and manpower.
[0004] Meanwhile, manual modeling is highly susceptible to human error, leading to issues such as component size deviations and non-standard node connections. This results in models that do not match actual engineering requirements, increasing the workload of subsequent design reviews and potentially misleading component fabrication and on-site construction, thus impacting the overall project schedule. Furthermore, traditional modeling methods struggle to respond quickly to design changes during project implementation, often requiring extensive adjustments to component parameters, further reducing design efficiency. This approach fails to meet the current demands of the construction industry for efficient and precise steel structure design. Therefore, a technical solution capable of rapid and accurate modeling of portal frames is urgently needed. Summary of the Invention
[0005] To address the technical problems of traditional steel portal frame modeling, which relies on manual operation or traditional software, resulting in cumbersome processes, low efficiency, inaccuracies due to human error, and difficulty in adapting to design changes, this invention provides a method and system for creating portal frames based on a 3D modeling software API interface. Users only need to input relevant design parameters, and the system can automatically generate a portal frame structure model that conforms to specifications, significantly reducing the time and labor costs of traditional manual modeling. Simultaneously, this method supports flexible configuration of various portal frame types and complex structures, improving the adaptability and scalability of the design. By generating a model based on user-input parameters, the overall efficiency and quality of portal frame design are significantly improved.
[0006] In a first aspect, the present invention provides a method for creating portal frames based on a 3D modeling software API interface, comprising: The system receives geometric parameters input by the user and automatically generates the main steel frame structure of the portal frame by calling the component creation interface of the 3D modeling software. Based on the already created main steel frame structure, the roof purlin arrangement parameters input by the user are received, and the roof purlin system is automatically generated by calling the component creation interface; Based on the already created main steel frame structure, the wall purlin arrangement parameters input by the user are received, and the wall purlin system is automatically generated by calling the component creation interface; The generation process of the main steel frame structure, roof purlin system and wall purlin system is based on the corresponding input parameters, and the corresponding interfaces are called to automatically complete the spatial calculation, positioning and three-dimensional model creation of the components.
[0007] The method for creating portal frames based on a 3D modeling software API interface provided in this invention automates the entire portal frame modeling process, breaking away from the inefficient traditional manual modeling method. Users only need to input the corresponding parameters, and the system can call the interface to complete the spatial calculation, positioning, and modeling of the main steel frame, roof, and wall purlin system, significantly reducing manual operation steps and shortening the modeling cycle. Simultaneously, the entire process relies on parameter-driven and interface-based calls, avoiding errors inherent in manual modeling and ensuring the consistency and standardization of all components in the model. Furthermore, this method adapts to the parameter input requirements of different projects, flexibly generating various portal frame structures, providing accurate models for subsequent structural verification and component fabrication, and improving the overall efficiency of design and construction collaboration.
[0008] In one optional implementation, receiving user-input geometric parameters and automatically generating the main steel frame structure of the portal frame by calling the component creation interface of the 3D modeling software includes: Receive the first and second positioning points input by the user, determine the span of the portal frame based on the two points, and establish a global coordinate system with the direction from the first positioning point to the second positioning point as the X-axis; Receive the user-inputted elevation parameters of the top of the side columns and the top of the middle columns, and calculate the roof slope of the steel frame; Call the corresponding component creation interface to create the side columns on both sides and at least one central column based on the span, elevation parameters and slope; Based on the horizontal distance between the side column and the middle column, and combined with the preset beam segment division parameters, calculate the spatial coordinates of the endpoints of each steel beam segment; Call the corresponding component creation interface to create the steel beam connecting the side column and the middle column based on the calculated endpoint coordinates; Call the corresponding component creation interface to generate and assemble column base embedded parts for the created steel column; Call the node creation interface, pass in the corresponding main parts, secondary parts and node parameters, and automatically create the connection nodes between the side columns and steel beams, the middle columns and steel beams, and the steel beams to generate a complete steel frame.
[0009] This invention provides a detailed automated creation process for the main steel frame. A unified global coordinate system is established through positioning points, providing a precise benchmark for subsequent component positioning. Elevation parameters are linked to calculate the roof slope, eliminating manual conversion and ensuring slope accuracy. Interface-based creation of steel columns and beams enables precise matching of component spatial coordinates, and automated assembly of column base embedded parts and nodes completes key aspects of main steel frame modeling. The overall process achieves full-link automation of the main steel frame from foundation positioning to node connection, reducing the probability of human error and improving the integrity of the main steel frame model, providing a solid foundation for the subsequent purlin system and enabling the rapid generation of various portal frame main structures.
[0010] In one optional implementation, the beam segmentation parameters are in string format, including the number of steel beam segments, segment length or equal division rules, and cross-sectional properties. The automatic generation of steel beams is controlled by parsing the string.
[0011] The parameter setting method of this invention enables flexible and controllable segmentation of steel beams. The string-formatted beam segmentation parameters integrate core information such as the number of segments, length rules, and cross-sectional properties, eliminating the need for separate configuration of multiple sets of parameters and simplifying the operation process. By parsing the string and automatically converting it into steel beam generation instructions, it can achieve different segmentation modes such as equal division and fixed length, and precisely control the cross-sectional specifications of each segment, adapting to complex steel beam design requirements. Simultaneously, the linkage between parameters and interfaces allows for rapid response to design changes; simply modifying the parameter string synchronously updates the steel beam model, significantly reducing rework costs and ensuring the standardization and efficiency of steel beam modeling.
[0012] In one optional implementation, based on the already created main steel frame structure, receiving user-inputted roof purlin arrangement parameters and automatically generating a roof purlin system by calling the component creation interface includes: A local coordinate system for the arrangement of roof purlins is established with reference to the ridge line direction or roof slope direction in the main steel frame structure. Parse the user-input string of roof purlin layout parameters to obtain a set of numerical sequences representing the purlin spacing; Based on the numerical sequence, the position of each purlin is iteratively calculated along the X-axis in the local coordinate system, and the corresponding component creation interface is called repeatedly to create multiple roof purlins; The system retrieves the user-defined tie rod layout fraction variables, purlin cross-section attribute variables, and tie rod strut cross-section variables, and calls the corresponding interfaces to create straight tie rods, diagonal tie rods, and struts to form a complete roof support system.
[0013] This invention establishes a standardized creation process for roof purlin systems. By establishing a local coordinate system, precise spatial positioning of the purlins is achieved, preventing misalignment with the main steel frame structure. A parsing mechanism for arrangement parameter strings can quickly convert them into purlin spacing sequences, enabling batch creation via cyclical API calls, replacing manual drawing of each purlin and improving modeling efficiency. The regularized generation of bracing components ensures the integrity and stress rationality of the roof support system. The overall process is parameter-driven, allowing flexible adjustment of purlin spacing and arrangement to adapt to different roof design requirements, while ensuring model standardization, providing a reliable basis for subsequent roof structure verification and construction.
[0014] In one optional implementation, based on the already created main steel frame structure, receiving user-inputted wall purlin arrangement parameters, and automatically generating a wall purlin system by calling the component creation interface, includes: A local coordinate system for the arrangement of wall purlins is established with reference to the axial direction of the columns in the main steel frame structure. Parse the user-input string of wall purlin layout parameters to obtain a set of numerical sequences representing the purlin spacing; Based on the numerical sequence, the position of each purlin is iteratively calculated along the X-axis in the local coordinate system, and the corresponding component creation interface is called repeatedly to create multiple wall purlins; The system retrieves the user-defined tie rod layout fraction variables, purlin cross-section attribute variables, and tie rod strut cross-section variables, and calls the corresponding interfaces to create straight tie rods, diagonal tie rods, and struts to form a complete wall support system.
[0015] This invention achieves automated and precise creation of wall purlin systems. A local coordinate system is established along the steel column axis to ensure spatial compatibility between the purlins and the main steel frame columns. The parsing mechanism for the wall purlin layout parameter strings can quickly generate spacing sequences, and batch creation of purlins is achieved through a looping interface, significantly reducing repetitive operations. Tensioner components are automatically generated according to preset rules, perfecting the wall support system and ensuring structural stability. Furthermore, this process supports flexible parameter adjustment to adapt to the purlin layout requirements of different walls, lowering the barrier to manual operation, improving the consistency of the wall model, and providing precise three-dimensional support for wall enclosure structure design.
[0016] In one optional implementation, the purlin arrangement parameter string is formatted as multiple segments separated by spaces, each segment being in the format of "quantity × spacing" or directly being a spacing value, and after parsing, a double-precision array for controlling the spacing of the components is generated.
[0017] This invention achieves efficient control over purlin spacing through a string format. The multi-segment combination is compatible with both fixed spacing and batch layout modes based on "quantity × spacing," accurately adapting to the purlin arrangement requirements of different areas on roofs and walls. It eliminates the need to split multiple sets of parameters for separate settings, simplifying the input process. By parsing and generating a double-precision array, character commands are converted into precise spacing values, providing reliable data support for automated purlin positioning and avoiding errors from manual calculations. Simultaneously, the unified parameter format facilitates rapid synchronization of design changes; simply modifying the string segments updates the purlin layout, improving modeling flexibility and efficiency.
[0018] In one alternative implementation, the method for establishing a local coordinate system includes: using a specific geometric direction of the selected main structural member as the X-axis of the local coordinate system; The inherent local Y-direction of the component is used as the Y-axis of the local coordinate system; By calculating the cross product of the X and Y axes, the Z-axis of the local coordinate system is determined, thus forming a three-dimensional right-handed coordinate system.
[0019] The coordinate system establishment method provided in this invention offers a unified and precise spatial positioning benchmark for roof and wall purlins. Using a specific direction of the main structural member as the X-axis ensures the geometric correlation between the purlin and the main steel frame. The inherent Y-axis of the member and the Z-axis generated by the cross product construct an orthogonal right-handed coordinate system, guaranteeing the accuracy of spatial positioning. This method adapts to the modeling needs of different parts; the roof can conform to the slope direction, and the walls can follow the column axis, avoiding component misalignment caused by coordinate system confusion. The standardized coordinate system construction logic improves the spatial consistency of the model, providing a unified benchmark for subsequent component collision detection and dimensional verification, ensuring the accuracy and standardization of the overall model.
[0020] Secondly, this invention provides a system for creating portal frames based on a 3D modeling software API interface, comprising: The main steel frame structure construction module is used to receive geometric parameters input by the user and automatically generate the main steel frame structure of the portal frame by calling the component creation interface of the 3D modeling software. The roof purlin system construction module is used to receive roof purlin layout parameters input by the user based on the already created main steel frame structure, and automatically generate the roof purlin system by calling the component creation interface; The wall purlin system construction module is used to receive wall purlin layout parameters input by the user based on the already created main steel frame structure, and automatically generate the wall purlin system by calling the component creation interface.
[0021] Thirdly, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the method for creating a portal frame based on a 3D modeling software API interface as described in the first aspect or any corresponding embodiment.
[0022] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the method for creating a portal frame based on a 3D modeling software API interface as described in the first aspect or any corresponding embodiment above.
[0023] Fifthly, the present invention provides a computer program product, including computer instructions for causing a computer to execute the method for creating a portal frame based on a 3D modeling software API interface as described in the first aspect or any corresponding embodiment above. Attached Figure Description
[0024] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0025] Figure 1 This is a flowchart illustrating a method for creating a portal frame based on a 3D modeling software API interface according to an embodiment of the present invention. Figure 2 This is a schematic diagram of the construction of the main steel frame structure according to an embodiment of the present invention; Figure 3 This is a schematic diagram of constructing a roof purlin system according to an embodiment of the present invention; Figure 4 This is a schematic diagram of a wall purlin system according to an embodiment of the present invention; Figure 5 This is a structural block diagram of a system for creating portal frames based on a 3D modeling software API interface according to an embodiment of the present invention; Figure 6 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0027] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.
[0028] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0029] Existing steel structure modeling methods typically rely on manual operation or traditional modeling software, resulting in cumbersome and inefficient processes. Furthermore, human error can easily lead to inaccurate models, impacting the quality and schedule of subsequent design and construction. Therefore, there is an urgent need for an efficient and accurate portal frame modeling method to improve design efficiency and model quality.
[0030] This invention provides an embodiment of a method for creating portal frames based on a 3D modeling software API interface. It should be noted that the steps shown in the flowcharts in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than that shown here. Figure 1 This is a flowchart of a method for creating a portal frame based on a 3D modeling software API interface according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps: Step S1: Receive the geometric parameters input by the user, and automatically generate the main steel frame structure of the portal frame by calling the component creation interface of the 3D modeling software; Step S2: Based on the already created main steel frame structure, receive the roof purlin arrangement parameters input by the user, and automatically generate the roof purlin system by calling the component creation interface; Step S3: Based on the already created main steel frame structure, receive the wall purlin arrangement parameters input by the user, and automatically generate the wall purlin system by calling the component creation interface; The generation process of the main steel frame structure, roof purlin system and wall purlin system is based on the corresponding input parameters, and the corresponding interfaces are called to automatically complete the spatial calculation, positioning and three-dimensional model creation of the components.
[0031] This invention, through obtaining parameters input by the user based on actual needs, automates modeling from the main steel frame to the roof and wall purlin systems entirely via the API interface of Xinghe Zhishe 3D modeling software. This eliminates the need for manual drawing of components, calibration of positions, and configuration of nodes. Compared to traditional manual modeling, the modeling cycle for a portal frame is significantly shortened, reducing repetitive operations and saving manpower and time costs. Simultaneously, the spatial calculation and positioning of all components are automatically completed based on input parameters and algorithms, and the interface uses standardized parameter templates, avoiding dimensional deviations and non-standard node connections caused by manual operation. The generated model accurately matches design specifications and engineering requirements, providing reliable data support for subsequent structural verification, component fabrication, and on-site construction.
[0032] Designers do not need to delve into the complex underlying logic of modeling and the principles of node construction. They only need to input the basic design parameters as required to complete the creation of the entire portal steel model through the interface. This lowers the professional threshold for steel structure modeling, makes it easier to promote and apply within enterprises, and improves the overall work efficiency of the design team.
[0033] Specifically, the main steel frame structure constructed in the embodiments of the present invention is as follows: Figure 2 As shown, specifically, it includes the following steps: Step S11: Receive the first and second positioning points input by the user, determine the span of the portal frame based on the two points, and establish a global coordinate system with the direction from the first positioning point to the second positioning point as the X-axis.
[0034] For example, the span of the door frame is determined by obtaining the lengths of the first point pt0 and the second point pt1 selected by the user through OnSnapPoint(Vec3pt0Vec3pt1), and the direction from the first point to the second point is set as the X-axis. By directly obtaining the parameters of the two points through the OnSnapPoint(Vec3pt0Vec3pt1) interface, designers do not need to manually measure and input the span values, eliminating the tedious steps of span calculation and manual coordinate system setting in traditional modeling, significantly shortening the preparation time in the early stage of modeling and improving the overall modeling efficiency.
[0035] By using two-point positioning, the actual layout control points on the construction site can be directly correlated, ensuring that the spatial orientation and dimensional benchmarks of the 3D model are consistent with those of the engineering site. Subsequent component processing drawings and installation drawings generated based on this model can better match the on-site construction needs, reduce the deviation between the model and the actual project, and provide accurate data support for subsequent construction stages. At the same time, the direction of the line connecting the two points is uniformly set as the X-axis to establish a global coordinate system, providing a consistent benchmark for the spatial positioning of all components such as steel columns, steel beams, and purlins. This ensures the spatial coordinate uniformity of the entire portal frame model and eliminates component misalignment problems caused by coordinate system confusion.
[0036] Step S12: Receive the top elevation parameters of the side columns and the top elevation parameters of the middle columns input by the user, and calculate the roof slope of the steel frame.
[0037] In one example, suppose the user enters the following parameters through the system: The top elevation of the left side column is 8000mm, the top elevation of the right side column is 8000mm, and the top elevation of the middle column is 9600mm. The horizontal distance between the left side post and the middle post is 16000mm, and the horizontal distance between the right side post and the middle post is 16000mm. The core calculation logic for roof slope is the ratio of height difference to horizontal distance. For a single-sided slope (from the left side column to the middle column): Height difference = Elevation of the top of the middle column - Elevation of the top of the left side column = 9600mm - 8000mm = 1600mm Horizontal distance = 16000mm Roof slope on one side = height difference / horizontal distance = 1600 / 16000 = 1:10 Similarly, the roof slope from the right side column to the middle column is also 1:10. The system can automatically identify this parameter and generate roof steel beams with the corresponding slope.
[0038] The embodiments of this invention, based on the quantitative calculation of elevation parameters, can accurately control the roof slope, avoiding the errors caused by setting the slope based on experience during manual modeling. This ensures that the generated steel frame model meets the building design specifications and structural stress requirements, providing an accurate model foundation for subsequent structural verification. Whether it is a single-span portal frame without a central column (double slope or single slope) or a multi-span portal frame with a central column, different side column and central column elevation parameters can be input to flexibly generate a roof with the corresponding slope, meeting the portal frame design requirements of different scenarios such as industrial plants and warehouse buildings.
[0039] Step S13: Call the corresponding component creation interface to create the side columns on both sides and at least one central column based on the span, elevation parameters and slope.
[0040] In this embodiment of the invention, side pillars and center pillars are created by calling the GetOrCreateSteelBeam interface of the Xinghe Smart Design platform. In one example, it is assumed that the user has already completed the initial parameter input: The coordinates of two points, pt0 (0,0,0) and pt1 (30000,0,0), are obtained through the OnSnapPoint(Vec3pt0Vec3pt1) interface. The span of the door is determined to be 30m, and the direction from pt0 to pt1 is set as the X-axis. The top elevation of the two side columns is set to 8m, and the top elevation of the middle column is set to 9.5m. The calculated slope of the roof on one side is 1:10. Then call the component creation interface GetOrCreateSteelBeam and pass in the preset parameters: 1. The side column section parameters are BH560×300×16×22, the material is Q355B, the column base elevation is 0m, the column top elevation is 8m, and the left and right side columns are created at 0m and 30m on the X axis respectively. 2. The cross-sectional parameters of the central column are BH600×300×18×25, the material is Q355B, the column bottom elevation is 0m, the column top elevation is 9.5m, and one central column is created at 15m on the X-axis (midpoint of the span).
[0041] The system can automatically complete the spatial positioning and component creation of the side columns and central columns based on the above parameters, generating a steel column model that meets the design requirements. The side columns and central columns created through the above standardization can serve as the core supporting components for subsequent steel beam and node connections. Their precise spatial coordinates and specifications can provide a reliable benchmark for the automatic docking of steel beams and the standardized configuration of nodes, ensuring the stability and integrity of the overall portal frame structure model.
[0042] Step S14: Based on the horizontal distance between the side column and the middle column, and combined with the preset beam segmentation parameters, calculate the spatial coordinates of the endpoints of each steel beam segment.
[0043] Specifically, the beam segmentation parameters are in string format, including the number of steel beam segments, segment lengths or equal division rules, and cross-sectional properties. The automated generation of steel beams is controlled by parsing these strings. The endpoint coordinates of the steel beams are automatically derived based on the span, slope, and beam segmentation parameters, avoiding problems such as tilt angle deviations and uneven segment lengths caused by manual modeling based on experience-based coordinate estimations. This ensures that the spatial form of the steel beams fully complies with structural design specifications, providing accurate model support for subsequent stress verification. Furthermore, the steel beam coordinates are strongly correlated with the span, elevation, and beam segment parameters. When design changes occur (such as adjusting the span or modifying the roof slope), the system can automatically update the endpoint coordinates of all steel beams and regenerate the components, eliminating the need for manual modification and efficiently responding to design change requirements.
[0044] Step S15: Call the corresponding component creation interface and create the steel beam connecting the side column and the middle column according to the calculated endpoint coordinates.
[0045] Specifically, designers no longer need to manually draw the outline of the steel beams or define the attributes of each component. They only need to call the GetOrCreateSteelBeam interface to create the steel beams between the starting edge column and the middle column, and between the ending edge column and the middle column. The spatial coordinates of the steel beams are automatically derived based on the previous span and slope parameters. The cross-section, material and other attributes of the components are uniformly configured through the interface, avoiding problems such as steel beam position offset and attribute inconsistency caused by manual operation. This ensures that the connection between the steel beams and steel columns is accurate and complies with the structural design specifications, providing a reliable model for subsequent stress verification.
[0046] Step S16: Call the corresponding component creation interface to generate and assemble column base embedded parts for the created steel column.
[0047] Specifically, by calling the GetOrCreateDetailComponent interface, a suitable column base embedded part is created for each steel column, filling the modeling link between the main steel structure components and the foundation. This ensures the integrity of the portal frame model from the superstructure to the foundation connection. The interface can automatically identify parameters such as the cross-sectional dimensions and column base coordinates of the steel column, and generate matching embedded part specifications and positioning accordingly. This avoids problems such as mismatch between embedded part dimensions and steel columns, and embedded part offset during manual modeling. It ensures that the column base connection structure conforms to the structural design specifications, providing accurate model basis for subsequent foundation design and steel column installation.
[0048] Meanwhile, since the column base embedded parts are strongly correlated with the steel column parameters, when the steel column cross-section and column base elevation are changed in the design, the system can automatically update the specifications and positioning of the embedded parts and quickly regenerate the embedded parts through the interface, without the need for manual modification one by one, thus efficiently responding to change requirements and reducing rework costs.
[0049] Step S17: Call the node creation interface, pass in the corresponding main parts, secondary parts and node parameters, and automatically create the connection nodes between the side columns and steel beams, the middle columns and steel beams, and the steel beams to generate a complete steel frame.
[0050] Specifically, through: The `public void XH_CreateComponent(PartBase mainPart PartBase subPart string Guid string AComponentBase instObj)` method takes as input the main part `mainPart`, the subpart `subPart`, the node's Guid, and default node parameters, and automatically creates connection nodes between edge columns and steel beams, middle columns and steel beams, and between steel beams. `XH_CreateComponent` is the core method for automated node creation encapsulated in 3D modeling software. Its core function is to automatically generate connection nodes between components in a portal frame (such as nodes between edge columns and steel beams, middle columns and steel beams, and steel beams) by taking the two components to be connected, node type parameters, and default configuration. This eliminates the need for manual drawing of node structures and definition of connection relationships, achieving standardization and automation of node creation.
[0051] This method, by inputting a unified node GUID and default parameters, can call a pre-defined standardized node construction library, ensuring that the connection form, weld specifications, bolt configuration, and other parameters of nodes of the same type are completely consistent. This avoids the problem of non-standard node connections caused by experience differences during manual modeling, ensuring the rationality of the stress of the portal frame structure nodes. It provides a precise and unified model basis for subsequent structural verification and component processing. At the same time, it can automatically identify the cross-sectional dimensions, spatial positions, and other parameters of the main and secondary parts, and match the appropriate node connection form accordingly to achieve precise docking of components and nodes. This eliminates problems such as node offset and connection angle errors that may occur during manual operation, ensuring the spatial integrity and connection reliability of the entire portal frame structure.
[0052] The automatic roof purlin generation system of this invention is as follows: Figure 3 As shown, specifically, it includes the following steps: S21. Using the ridge line direction or roof slope direction in the main steel frame structure as a reference, establish a local coordinate system for the arrangement of roof purlins.
[0053] Specifically, the X-axis of the local coordinate system is taken as the specific geometric direction of the selected main structural component; the Y-axis of the local coordinate system is taken as the inherent local Y-direction of the component; and the Z-axis of the local coordinate system is determined by calculating the cross product of the X-axis and the Y-axis, thus forming a three-dimensional right-handed coordinate system.
[0054] In one example, a coordinate system is defined using `newMat43()`. The X-direction is the direction from the ridge of the main part to the downward slope, the Y-direction of the main part is the Y-direction of the coordinate system, and `X.Cross(Y)` determines the Z-axis direction, thus obtaining a three-dimensional coordinate system. This embodiment of the invention creates an empty matrix coordinate system object by calling `newMat43()`, providing a carrier for subsequent axis direction definitions. X-axis definition: The "ridge direction to the downward slope direction" of the main component (such as the main roof beam) is set as the X-axis. This direction is completely consistent with the sloping extension direction of the roof and is the core reference direction for the arrangement of roof purlins. Y-axis definition: The Y-axis follows the inherent local Y-direction of the main component (usually the horizontal direction perpendicular to the roof span), without the need for additional adjustment, ensuring spatial correlation with the main component; Z-axis definition: The Z-axis direction is determined by the vector cross product operation X.Cross(Y) (the cross product of the X-axis vector and the Y-axis vector). The cross product result naturally satisfies the "right-hand screw rule," ultimately forming a three-dimensional coordinate system with three orthogonal axes. The system can directly iteratively calculate the position of each purlin based on the X-axis direction and adjust the tilt angle of the tie rods based on the Z-axis direction, without the need for additional spatial dimension calibration, ensuring the accuracy and automation of batch creation of roof purlins and tie rod components.
[0055] S22, parse the user-input roof purlin layout parameter string to obtain a set of numerical sequences representing the purlin spacing.
[0056] Specifically, the purlin arrangement parameter string format contains multiple segments separated by spaces. Each segment is in the format of "quantity × spacing" or is a direct spacing value. After parsing, a double-precision array is generated to control the spacing between components. In one example, a string type variable is set as follows: Control the spacing of the purlins, then use BoltRead to parse the string content to get a double[] array, and use it to get the value at a certain position.
[0057] S23, based on the numerical sequence, iteratively calculate the position of each purlin along the X-axis in the local coordinate system, and cyclically call the corresponding component creation interface to create multiple roof purlins.
[0058] In one example, the interface GetOrCreateSteelBeam("purlin" beam1newVec3(pt_jd1.X+double[1]pt_jd1.Ypt_jd1.Z)newVec3(pt_jd2.X+double[1]pt_jd2.Ypt_jd2.Z)) is called. The value of double[1] is added to the X-axis to determine the creation of the purlin, and then other purlins are created by looping.
[0059] Among them, the GetOrCreateSteelBeam interface is the core interface for component creation provided by 3D modeling software. Its function is to "create or reuse steel beam / purlin components". By passing in the name, attributes, and start and end coordinates, the corresponding component can be generated. pt_jd1 / pt_jd2: Reference coordinate points, which are derived from the endpoint coordinates of the "main component (such as roof steel beam)" and "secondary component (such as another roof steel beam)" selected by the user. They are the basic reference for purlin arrangement. double[1]: The second value in the double array obtained after parsing the purlin arrangement parameter string (such as "15950 4800") (array index starts from 0, [1] corresponds to 950), representing the offset spacing of the purlin in the X-axis direction; X-axis offset calculation: Add double[1] to the reference coordinates pt_jd1.X / pt_jd2.X. The essence is to determine the X-axis spatial position of the first purlin relative to the reference position. The Y and Z axis coordinates are kept consistent with the reference to ensure that the purlin is arranged along the roof slope direction and does not deviate.
[0060] Users only need to select two roof steel beams (main part + secondary part) on the modeling interface, and the system will automatically extract the endpoint coordinates of these two parts as pt_jd1 / pt_jd2, eliminating the need for manual input of coordinates and simplifying the operation. The start and end positions of the first roof purlin are accurately determined by "baseline coordinates + X-axis offset value", ensuring the spatial fit between the purlin and the roof steel beam. After the first purlin is created, the system iterates through the double[] array (e.g., taking values such as 950, 800, etc.) and accumulates the X-axis offset value in each loop (e.g., the second purlin is offset by 950+950, the third by 950+950+950, etc.). By repeatedly calling the GetOrCreateSteelBeam interface, all roof purlins can be automatically generated without the need for manual creation of each one. The core is to achieve automated and accurate creation of roof purlins through baseline coordinates + array offset + interface call + loop.
[0061] S24: Obtain the user-defined tie rod layout fraction variables, purlin cross-section attribute variables, and tie rod strut cross-section variables, and call the corresponding interfaces to create straight tie rods, diagonal tie rods, and struts to form a complete roof support system.
[0062] Specifically, obtain the user-set tie rod arrangement score variable, calculate the distance from the main part to the secondary part, and obtain the distance of each spacing through the score; and set the attribute variable of the purlin section, tie rod strut section variable, GetOrCreateSteelBeam("Second purlin of the ridge"beam1newVec3(pt_jd1.X+double[1]pt_jd1.Ypt_jd1.Z)newVec3(pt_jd2.X+double[1]pt_jd2.Ypt_jd2.Z)) According to the coordinate system of the main part, add double[1] to the X-axis to determine the creation of the purlin, and determine the arrangement number of purlins according to the purlin arrangement value.
[0063] pt_jd1 / pt_jd2 are the reference endpoint coordinates under the main part coordinate system. double[1] is the second value (i.e., 950) in the double-precision array obtained by parsing the purlin arrangement string (such as "15950 4800"). Adding this value to the reference coordinate X-axis can determine the spatial position of the second purlin of the roof ridge. The Y and Z axes are kept consistent with the reference to ensure that the purlin fits the roof slope. The number of purlins is directly related to the arrangement string (such as "15950" corresponds to 15 purlins, "... (corresponding to 4 purlins), the system calls the above interface repeatedly according to this value to generate the corresponding number of purlins in batches.
[0064] Furthermore, straight tie rods and struts are created using GetOrCreateSteelBeam, and diagonal tie rods are created using GetOrCreateSteelPolyBeam. Finally, all purlin struts within the purlin spacing are created by iterating through the double[] array. When the value of double[] is greater than 4, the loop exits after the array is traversed.
[0065] Among them, straight tie rods and struts are regular linear components, created by calling the GetOrCreateSteelBeam interface; diagonal tie rods need to adapt to the roof slope and are irregular in shape, created by calling GetOrCreateSteelPolyBeam (irregular steel beam creation interface) to ensure the fit with the roof purlins; The loop iteration and termination logic is that the system iterates through the double[] array of purlin spacing (e.g., [950, 800]) and creates a strut for each spacing interval. When the value in the array is greater than 4 (e.g., the value is 5, 6, etc., or the spacing value exceeds 4m), the loop will automatically exit after the iteration is completed to avoid invalid creation and accurately control the arrangement range of the struts.
[0066] Tie rod spacing is quantitatively calculated using a combination of fractions and distances between primary and secondary components. Purlin positions are determined by a coordinate system and array offset values, with quantities linked to string parameters. The entire process eliminates manual estimation, avoiding issues like uneven purlin spacing and misaligned bracing components common in traditional manual modeling. This ensures accurate spatial positioning of components and complies with structural design specifications. There's no need to manually draw each purlin, tie rod, and strut individually. Through interface calls and array iteration, all components can be created in batches at once. The logic for adapting diagonal tie rods to irregular interfaces and terminating strut iterations is particularly effective, adapting to component characteristics while avoiding redundant operations. When parameters such as purlin spacing and tie rod fractions change, only the input parameters or array values need modification; the system automatically recalculates the spacing, adjusts the loop count, and quickly generates new component models without requiring manual modifications, significantly reducing rework costs associated with design changes.
[0067] This invention provides an automatic wall purlin generation system, such as... Figure 4 As shown. Specifically, it includes the following steps: S31, with the axial direction of the column in the main steel frame structure as a reference, establish a local coordinate system for the arrangement of wall purlins.
[0068] Specifically, a coordinate system is defined using newMat43(), with the direction from the bottom to the top of the main part column as the X direction, the Y direction of the main part as the Y direction of the coordinate system, and X.Cross(Y) determining the Z-axis direction, thus obtaining a new coordinate system.
[0069] In this embodiment of the invention, the X-axis is used from the base to the top of the main component column. This allows the local coordinate system to directly conform to the physical extension direction of the steel column, perfectly matching the modeling requirements of the wall purlins arranged along the column axis. This avoids purlin positioning errors caused by misalignment between the general coordinate system and the component's direction. The Z-axis is determined by the component's inherent Y-axis and the cross product (X.Cross(Y)), ensuring that the three axes are orthogonal and conform to the spatial shape of the component. This guarantees accurate calculation of the offset of the purlins and bracing components in the X-axis direction, achieving 100% spatial conformity with the steel column. The method of initializing the coordinate system using newMat43() and determining the Z-axis through cross product operations strictly follows the construction specifications of the three-dimensional right-handed coordinate system, unifying the spatial positioning rules for wall purlin modeling.
[0070] Regardless of which steel column the designer chooses as the main component, the same logic can be used to generate the coordinate system, eliminating model splicing errors caused by manually adjusting the coordinate system angle and customizing the axis direction, and ensuring the consistency of collaborative modeling among multiple components and personnel.
[0071] S32, parse the user-input string of wall purlin layout parameters to obtain a set of numerical sequences representing the purlin spacing; Setting a string type variable, for example, " "Control the spacing of the purlins, then use BoltRead to parse the string content to get a double[] array, and control the retrieval of the value at a certain position."
[0072] S33, based on the numerical sequence, iteratively calculate the position of each purlin along the X-axis in the local coordinate system, and cyclically call the corresponding component creation interface to create multiple wall purlins.
[0073] In this embodiment of the invention, the roof purlin can be quickly created by calling the interface GetOrCreateSteelBeam("purlin" beam1 newVec3(pt_jd1.X+double[1]pt_jd1.Ypt_jd1.Z)newVec3(pt_jd2.X+double[1]pt_jd2.Ypt_jd2.Z)) by adding double[1] to the X-axis to determine the purlin creation, and then creating other purlins by looping.
[0074] The core function of the steel beam / purlin creation interface encapsulated by GetOrCreateSteelBeam is to "create or reuse linear components". The corresponding component model can be generated by passing in the name, attributes and start and end coordinates. Users only need to select two roof steel beams in the modeling interface (the first is the "main part" and the second is the "secondary part"). The system will automatically extract the endpoint coordinates of the two parts as pt_jd1 (endpoint of the main part) and pt_jd2 (endpoint of the secondary part). There is no need to manually input the coordinates, which is the core of simplifying the operation. double[1] is the second value in the double precision array obtained after parsing the purlin arrangement parameter string (such as "15950 4800") input by the user. The spatial position of a single purlin can be determined by superimposing this value on pt_jd1.X / pt_jd2.X (reference coordinate X axis). Y, Z The axis remains consistent with the reference coordinates to ensure that the purlins fit the roof slope and width direction without offset; after the first purlin offset by double[1] is created, the system will loop through the double[] array (such as taking 950, 800 and other interval values in turn), and accumulate the X-axis offset value in each loop (such as the second purlin offset by double[1]+double[1], the third purlin offset by double[1]+double[1]+double[1]...), and repeatedly call the GetOrCreateSteelBeam interface to automatically generate all wall purlins.
[0075] S34 retrieves the user-defined tie rod layout fraction variables, purlin cross-section attribute variables, and tie rod strut cross-section variables, and calls the corresponding interfaces to create straight tie rods, diagonal tie rods, and struts to form a complete wall support system.
[0076] Specifically, straight tie rods and struts are created by calling the GetOrCreateSteelBeam interface. Since straight tie rods are regular linear components and struts are rigid linear components, they are adapted to the general steel beam creation interface. Diagonal tie rods are created by calling the GetOrCreateSteelPolyBeam interface. Diagonal tie rods need to adapt to the inclination angle of the wall purlins (such as diagonal arrangement). They are irregular linear components and need to be created using a special irregular steel beam interface to ensure that the spatial shape fits the wall. Finally, all purlin struts within the purlin spacing are created by iterating through the double[] array.
[0077] In one example, the user-inputted fraction (such as "3 equal parts" or "4 equal parts") of the tie rod arrangement variable is the basis for calculating the spacing of the tie rod components. The system first calculates the horizontal / vertical distance between the main wall component (such as a steel column) and the secondary component (such as another steel column), and then divides it into equal parts according to the fraction to obtain the arrangement spacing of each tie rod / strut (for example, the spacing between the main and secondary components is 12m, and the spacing is 4m if divided into 3 equal parts); the cross-sectional attribute variable: the cross-sectional dimensions, material and other attribute parameters of purlins (such as CC200-2-20-45), straight tie rods (such as Φ16 round steel), struts (such as Φ48×3 steel pipe), and diagonal tie rods (such as Φ16 round steel) are preset in advance as the reference attributes for component creation.
[0078] The system first parses the wall purlin layout parameter string (such as "700 15950 4800") to obtain a double[] array (such as [700,950,800]), which stores the spacing value of each purlin. Then, it iterates through the array, using the spacing value in the array as a reference, and calls the corresponding interface to create a strut within the spacing range of each purlin. During the iteration, the spacing is calculated according to the "strut layout score", and straight / diagonal struts are created at the corresponding positions simultaneously, eventually covering all purlin spacing ranges to form a complete support system.
[0079] When parameters such as the arrangement fraction of tie rods and the spacing between purlins change, only the input parameters or the double[] array value need to be modified. The system can automatically recalculate the spacing, adjust the number of loops, and quickly generate a new support system model. There is no need to manually disassemble and rebuild the components one by one, which greatly reduces the time cost of design changes.
[0080] This embodiment also provides a system for creating portal frames based on a 3D modeling software API interface. This device is used to implement the above embodiments and preferred embodiments, and details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0081] This embodiment provides a system for creating portal frames based on a 3D modeling software API interface, such as... Figure 5 As shown, it includes: The main steel frame structure construction module 51 is used to receive geometric parameters input by the user and automatically generate the main steel frame structure of the portal frame by calling the component creation interface of the 3D modeling software. The roof purlin system construction module 52 is used to receive roof purlin layout parameters input by the user based on the already created main steel frame structure, and automatically generate the roof purlin system by calling the component creation interface; The wall purlin system construction module 53 is used to receive wall purlin layout parameters input by the user based on the already created main steel frame structure, and automatically generate the wall purlin system by calling the component creation interface.
[0082] The system for creating portal frames based on a 3D modeling software API interface provided in this embodiment of the invention can execute the method and solution method for creating portal frames based on a 3D modeling software API interface provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the above modules and units are the same as in the corresponding embodiments described above, and will not be repeated here.
[0083] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.
[0084] The following is a detailed reference. Figure 6 This diagram illustrates a suitable structural design for implementing an electronic device according to embodiments of the present invention. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 601, which can perform various appropriate actions and processes based on a program stored in read-only memory (ROM) 602 or a program loaded from memory 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of the electronic device. The processor 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to bus 604.
[0085] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.
[0086] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a memory 608, or installed from a ROM 602. When the computer program is executed by the processor 601, it performs the functions defined in the method for creating portal frames based on a 3D modeling software API interface according to embodiments of the present invention.
[0087] Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
[0088] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code originally stored on a remote storage medium or a non-transitory machine-readable storage medium and subsequently stored on a local storage medium after being downloaded via a network. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that the computer, processor, microprocessor controller, or programmable hardware includes a storage interface for storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the method for creating a portal frame based on a 3D modeling software API interface shown in the above embodiments is implemented.
[0089] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0090] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A method for creating portal frames based on a 3D modeling software API interface, characterized in that, include: The system receives geometric parameters input by the user and automatically generates the main steel frame structure of the portal frame by calling the component creation interface of the 3D modeling software. Based on the already created main steel frame structure, the roof purlin arrangement parameters input by the user are received, and the roof purlin system is automatically generated by calling the component creation interface; Based on the already created main steel frame structure, the wall purlin arrangement parameters input by the user are received, and the wall purlin system is automatically generated by calling the component creation interface; The generation process of the main steel frame structure, roof purlin system and wall purlin system is based on the corresponding input parameters, and the corresponding interfaces are called to automatically complete the spatial calculation, positioning and three-dimensional model creation of the components.
2. The method according to claim 1, characterized in that, The process of receiving geometric parameters input by the user and automatically generating the main steel frame structure of the portal frame by calling the component creation interface of the 3D modeling software includes: Receive the first and second positioning points input by the user, determine the span of the portal frame based on the two points, and establish a global coordinate system with the direction from the first positioning point to the second positioning point as the X-axis; Receive the user-inputted elevation parameters of the top of the side columns and the top of the middle columns, and calculate the roof slope of the steel frame; Call the corresponding component creation interface to create the side columns on both sides and at least one central column based on the span, elevation parameters and slope; Based on the horizontal distance between the side column and the middle column, and combined with the preset beam segment division parameters, calculate the spatial coordinates of the endpoints of each steel beam segment; Call the corresponding component creation interface to create the steel beam connecting the side column and the middle column based on the calculated endpoint coordinates; Call the corresponding component creation interface to generate and assemble column base embedded parts for the created steel column; Call the node creation interface, pass in the corresponding main parts, secondary parts and node parameters, and automatically create the connection nodes between the side columns and steel beams, the middle columns and steel beams, and the steel beams to generate a complete steel frame.
3. The method according to claim 2, characterized in that, The beam segmentation parameters are in string format, including the number of steel beam segments, segment length or equal division rules, and cross-sectional properties. The automatic generation of steel beams is controlled by parsing the string.
4. The method according to claim 1, characterized in that, Based on the already created main steel frame structure, the system receives roof purlin arrangement parameters input by the user and automatically generates a roof purlin system by calling the component creation interface, including: A local coordinate system for the arrangement of roof purlins is established with reference to the ridge line direction or roof slope direction in the main steel frame structure. Parse the user-input string of roof purlin layout parameters to obtain a set of numerical sequences representing the purlin spacing; Based on the numerical sequence, the position of each purlin is iteratively calculated along the X-axis in the local coordinate system, and the corresponding component creation interface is called repeatedly to create multiple roof purlins; The system retrieves the user-defined tie rod layout fraction variables, purlin cross-section attribute variables, and tie rod strut cross-section variables, and calls the corresponding interfaces to create straight tie rods, diagonal tie rods, and struts to form a complete roof support system.
5. The method according to claim 1, characterized in that, Based on the already created main steel frame structure, the system receives user-inputted wall purlin arrangement parameters and automatically generates a wall purlin system by calling the component creation interface, including: A local coordinate system for the arrangement of wall purlins is established with reference to the axial direction of the columns in the main steel frame structure. Parse the user-input string of wall purlin layout parameters to obtain a set of numerical sequences representing the purlin spacing; Based on the numerical sequence, the position of each purlin is iteratively calculated along the X-axis in the local coordinate system, and the corresponding component creation interface is called repeatedly to create multiple wall purlins; The system retrieves the user-defined tie rod layout fraction variables, purlin cross-section attribute variables, and tie rod strut cross-section variables, and calls the corresponding interfaces to create straight tie rods, diagonal tie rods, and struts to form a complete wall support system.
6. The method according to claim 4 or 5, characterized in that, The purlin arrangement parameter string contains multiple sub-segments separated by spaces. Each sub-segment is in the format of "quantity × spacing" or is directly a spacing value. After parsing, a double-precision array is generated to control the spacing between components.
7. A system for creating portal frames based on a 3D modeling software API interface, characterized in that, include: The main steel frame structure construction module is used to receive geometric parameters input by the user and automatically generate the main steel frame structure of the portal frame by calling the component creation interface of the 3D modeling software. The roof purlin system construction module is used to receive roof purlin layout parameters input by the user based on the already created main steel frame structure, and automatically generate the roof purlin system by calling the component creation interface; The wall purlin system construction module is used to receive wall purlin layout parameters input by the user based on the already created main steel frame structure, and automatically generate the wall purlin system by calling the component creation interface.
8. An electronic device, characterized in that, include: A memory and a processor are interconnected, the memory stores computer instructions, and the processor executes the computer instructions to perform the method for creating a portal frame based on a 3D modeling software API interface as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to execute the method of creating a portal frame based on a 3D modeling software API interface as described in any one of claims 1 to 6.
10. A computer program product, characterized in that, Includes computer instructions for causing a computer to execute the method of creating a portal frame based on a 3D modeling software API interface as described in any one of claims 1 to 6.