Truss modeling method based on Revit secondary development

By building a standardized family library and user operation interface in Revit, the truss modeling process is optimized, and the problems of slow truss modeling speed and difficult node creation in Revit are solved, and efficient and accurate truss three-dimensional modeling is achieved.

CN119538369APending Publication Date: 2025-02-28NANJING KISEN INT ENG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411591949.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

Creating truss structure models in Revit has problems such as slow speed and difficult node creation, especially the modeling of complex spatial structures.

Method used

The truss modeling method based on Revit secondary development is adopted, and by building a standardized family library, creating user operation interfaces, creating spatial layouts, modifying cross-section types, and node processing, support settings and enclosure structure creation.

Benefits of technology

It improves the speed and accuracy of truss modeling, reduces the difficulty and time cost of node creation, and realizes the efficiency and accuracy of three-dimensional modeling of steel trusses in Revit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119538369A_ABST
    Figure CN119538369A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of building and civil engineering, and particularly relates to a truss modeling method based on Revit secondary development. According to the method, rapid truss modeling is carried out by constructing a truss member standardized family library, manufacturing a truss member user operation interface, creating a truss space layout, creating a truss model, modifying the section type of the truss member, and then carrying out node processing, support setting and enclosure structure creation on the truss. According to the method, the modeling method is optimized by setting parameters, the three-dimensional modeling speed of the steel truss in Revit is high, the accuracy is high, node creation is efficient, and application of the BIM digital technology in complex steel structure design is promoted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of architecture and civil engineering, and in particular relates to a truss modeling method based on Revit secondary development. Background Art

[0002] BIM integrates information from all stages of engineering projects, realizes the full life cycle management of design, construction, and operation, and improves the efficiency and quality of engineering management. Its three-dimensional visualization and collision detection functions optimize the design and construction process, reducing rework and waste. Combined with the Internet of Things and artificial intelligence, BIM has realized intelligent construction and operation and maintenance, promoted the development of informatization and standardization in the construction industry, enhanced the government's regulatory capabilities, and fully supported the country's digital and intelligent transformation. The core of BIM is modeling. With the rapid development of current software and hardware technologies, many BIM software have emerged, such as Autodesk's Revit software. However, for designers, it is still difficult to create structural models in Revit, especially complex spatial structures, and trusses are one of the representatives.

[0003] Trusses have demonstrated their superior mechanical properties, economy, construction convenience and design flexibility in many fields such as industrial buildings, commercial buildings, cultural and entertainment facilities, sports facilities, public infrastructure, residential buildings, transportation facilities, environmental protection and energy facilities, etc. Whether it is to achieve large-span column-free space, rapid construction, flexible layout, or to meet the aesthetic needs of modern architecture, steel structure trusses can meet the diverse needs of various buildings and engineering projects, and have become an indispensable and important structural form in modern architecture.

[0004] However, trusses are difficult to create in Revit because trusses usually have complex geometric shapes and connection points, and manually drawing truss shapes takes a lot of time and effort. Since truss members are often not on the same plane, it is necessary to frequently switch work planes to draw truss members in different directions during modeling, which increases the difficulty and time cost of modeling and is prone to misoperation. In addition, the node connections of the trusses need to be very precise to ensure the stability of the structure and the feasibility of construction. Achieving precise truss connections in Revit requires careful adjustments and multiple attempts. Although Revit supports parametric modeling, it is difficult to implement parametric modeling for complex truss structures, and complex parametric formulas and custom families need to be written. Therefore, the problems of slow 3D modeling and difficult node creation of trusses in Revit need to be solved urgently. Summary of the invention

[0005] In order to solve the problems of slow 3D modeling speed and difficult node creation of trusses in Revit, and improve the truss modeling speed and modeling accuracy, the present invention provides a truss modeling method based on Revit secondary development, and the technical solutions adopted are as follows:

[0006] A truss modeling method based on Revit secondary development includes the following steps:

[0007] Build a standardized family library of truss components;

[0008] Create a user interface for truss members;

[0009] Create truss space layouts;

[0010] Create truss models;

[0011] Modify the truss member section type;

[0012] Carry out node processing, support setting and enclosure structure creation for the truss.

[0013] Furthermore, the method used to construct a standardized family library of truss components is as follows:

[0014] Classify the truss components, create truss components with different section types according to the national standard section library, set the family category and visibility of the truss components, and form a standardized family library for truss components.

[0015] Further, when the truss members are classified, the categories include upper chord, lower chord, vertical web, rigid frame column, rigid frame beam, upper beam, lower beam, belt leg beam, upper chord support, and lower chord support.

[0016] Furthermore, the method used to make the truss member user interface is as follows:

[0017] Determine the parameters required to create a 3D truss model, set the parameters through the user interface framework, and create a schematic diagram of the truss standard frame.

[0018] Furthermore, the parameters required for creating a three-dimensional truss model include: truss span, truss height, truss width, truss slope, vertical web direction, lower chord segment spacing, and belt leg beam positioning information.

[0019] Furthermore, the method used to create the truss space layout is as follows:

[0020] Set the truss parameters, select the insertion point, calculate the endpoint coordinates of the four chords, which are two upper chords and two lower chords; create four chords and obtain the line segments of the four chords; create a plane perpendicular to the truss span direction, find the intersection of the four chords and the plane perpendicular to the truss span direction and add them to the coordinate point set; combine the spatial position relationship of the truss members and the coordinate point set to create vertical web members, rigid frame columns, rigid frame beams, upper beams, lower beams, upper chord supports, and lower chord supports; according to the position of the belt leg beams, create the planes where the two belt leg beams are located, that is, the planes perpendicular to the width direction of the truss; traverse the lower beam line segment, find the coordinates of the intersection of the lower beam line segment and the plane where the belt leg beam is located and add them to the coordinate point set, and create all the belt leg beams along the truss span direction.

[0021] Further, the method used to create the truss model is as follows:

[0022] The NewFamilyInstance function is used to create the axis grid of the truss member. The truss member is displayed as a single line in the rough mode and is used as the truss axis grid. According to the purpose and location characteristics of the truss member, text information is added to the truss member parameter annotation: upper chord, lower chord, vertical web, rigid frame column, rigid frame beam, upper beam, lower beam, belt leg beam, upper chord support, and lower chord support.

[0023] Furthermore, the method used to modify the cross-section type of a truss member is as follows:

[0024] Select the created truss axis grid, classify the truss member types according to text information and add them to the form for batch modification of section types, select new truss member section types, and modify them in batches.

[0025] Furthermore, the methods used for node processing, support setting, and enclosure structure creation of the truss are as follows:

[0026] Node processing: align the top surface of the truss lower beam, belt leg beam, and lower rigid frame beam to the top surface of the lower chord, and align the top surface of the lower chord support to the bottom surface of the lower chord; align the top surface of the truss upper beam and upper rigid frame beam to the top surface of the upper chord, and align the top surface of the upper chord support to the bottom surface of the upper chord;

[0027] Support settings: Select the support type, truss mounting surface, and then select the truss column. Create a truss support at the intersection of the column and the mounting surface and extend the column to the top surface of the support.

[0028] Creation of enclosure structure: select the purlin type, select the upper rigid frame beams at both ends to create roof purlins; select the columns at both ends of the same frame to create wall purlins.

[0029] The beneficial effects of the present invention are as follows:

[0030] In the existing Revit, since truss members are often not on the same plane, it is necessary to frequently switch work planes to draw truss members in different directions during modeling, which increases the difficulty and time cost of modeling and is prone to misoperation. In addition, the node connection of the truss needs to be very precise, and achieving precise truss connection requires careful adjustment and multiple attempts. Although Revit supports parametric modeling, it is difficult to implement parametric modeling for complex truss structures, and it is necessary to write complex parametric formulas and custom families. Therefore, the 3D modeling speed of trusses in the existing Revit is slow and node creation is difficult.

[0031] The present invention provides a truss modeling method based on Revit secondary development, which constructs a standardized family library of truss members, makes a truss member user interface, creates a truss space layout, creates a truss model, modifies the cross-section type of the truss member, and then performs node processing, support setting, and enclosure structure creation on the truss to perform truss rapid modeling. The method optimizes the modeling method by setting parameters, so as to achieve fast three-dimensional modeling of steel trusses in Revit, high accuracy, and more efficient node creation, thereby promoting the application of BIM digital technology in complex steel structure design. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 is a truss modeling flow chart of an example of the present invention;

[0033] Figure 2 is a schematic diagram of a truss component of an example of the present invention;

[0034] Figure 3 It is a structural framework object style setting diagram in a project document of an example of the present invention;

[0035] Figure 4 is a parameter setting diagram of a truss member standard database (H-beam) of an example of the present invention;

[0036] Figure 5 is a user operation interface diagram of creating a truss according to an example of the present invention;

[0037] Figure 6 This is an operation interface diagram for batch modification of cross-section types of truss members according to an example of the present invention;

[0038] Figure 7 is a schematic diagram of the interface of the truss modeling tool set of the example of the present invention;

[0039] Figure 8 is a schematic diagram of a truss rolling bearing created in an example of the present invention;

[0040] Fig. 9 It is an operation interface diagram for creating roof purlins according to an example of the present invention. DETAILED DESCRIPTION

[0041] The present invention is further described below.

[0042] A truss modeling method based on Revit secondary development, the process is as follows Figure 1 As shown, the specific steps include:

[0043] S1. Build a standardized family library of truss components

[0044] Based on design experience, the commonly used truss component models are summarized and merged to form a standardized family library of truss components. The specific steps are as follows:

[0045] S101. Classify truss members and sort out their corresponding common cross-sectional specifications. According to the purpose and location characteristics of truss members, classify truss members, such as Figure 2 As shown, the categories include upper chord, lower chord, vertical web, rigid frame column, rigid frame beam, upper beam, lower beam, belt leg beam, upper chord support, and lower chord support; sort out the commonly used cross-sectional specifications corresponding to the truss members in the truss members;

[0046] S102. Create the truss members sorted in step S101, create truss members of different section types according to the national standard section library, and set their family category, visibility and other necessary parameters, as follows: Use the "Metric Structural Frame - Beams and Braces" family template, and the family created using this template has the LocationCurve attribute. In addition, the family category is set to "Structural Frame", and the truss members are visible only in medium and detailed levels. At the same time, set the display style of the "Other" type of the structural frame, as follows: Figure 3 shown.

[0047] S103: Set the material properties and geometric parameters of the truss member created in step S102. The specific parameter information is as follows: Figure 4 As shown in the figure, all standardized truss family files are concentrated in one folder to form a standardized family library of truss components.

[0048] S104: Create a Revit project and load the standardized family library file of truss components into the Revit project. The standardized family library file of truss components is automatically loaded into the project through the LoadFamilySymbol function, which is also convenient for reuse in different projects.

[0049] S2. User interface for making truss members

[0050] Determine the truss parameters, select the user interface framework to create the user interface, and use the function to create a schematic diagram of the truss standard beam. The specific steps are as follows:

[0051] S201: Determine the necessary parameters for creating a three-dimensional truss model, including truss span, truss height, truss width, truss slope, vertical web direction, lower chord segment spacing, and belt leg beam positioning information;

[0052] S202: Select a user interface framework. This embodiment takes Windows Presentation Foundation (hereinafter referred to as WPF) as an example, and calls controls such as TextBox, ComboBox, CheckBox, etc. to implement the setting of the parameters described in step S201, such as Figure 5 As shown. Among them, the truss span, truss height, truss width, truss slope, lower chord segment spacing, and belt leg beam size parameters are set using TextBox controls, and the TextBox_Changed event is generated in the TextBox of the lower chord segment spacing to trigger the real-time update of the truss span parameters. The vertical web direction parameters use ComboBox controls, with two preset types: "vertical corridor surface" and "vertical downward". The check box uses a CheckBox control, and the schematic diagram uses an Image control.

[0053] S203: Create a schematic diagram of the standard truss frame through System.Windows.Media functions such as Pen, DrawLine, DrawingVisual, etc., and obtain its coordinate information from the parameters set in the control created in step S202; obtain the relative position of each node in the Image control, create the node using the Point function, and then create a single-line schematic symbol through the Pen function. The code snippet is shown below.

[0054]

[0055] S3: Create a truss space layout

[0056] Through the user interface parameter settings, calculate the truss member node coordinates and create the truss space layout. The specific steps are as follows:

[0057] S301: After setting the truss parameters, select the insertion point, where the truss parameters include truss span, truss width, truss height and truss slope.

[0058] S302: Calculate the endpoint coordinates of four chords according to the truss span, truss height, truss width, and truss slope, where the four chords are two upper chords and two lower chords (the upper chords and the lower chords are collectively referred to as chords); create the four chords and obtain the line segments of the four chords; traverse Figure 5 The spacing of the middle and lower chord segments is created, a plane perpendicular to the span direction of the truss is created, the intersection points of the four chords and the plane perpendicular to the span direction of the truss are obtained, and added to the coordinate point set.

[0059] S303: Based on the spatial position relationship of the truss members, according to the set of coordinate points created in step S302, vertical web members, rigid frame columns, rigid frame beams, upper beams, lower beams, upper chord supports, and lower chord supports are created respectively. Figure 2 shown.

[0060] S304: According to the position of the belt leg beam, create the planes where the two belt leg beams are located, that is, the planes perpendicular to the width direction of the truss. Traverse the lower beam line segment created in S303, obtain the coordinates of the intersection of the lower beam line segment and the plane where the belt leg beam is located and add them to the coordinate point set, and create all the belt leg beams along the span direction of the truss. The position of the belt leg beam is shown in the following example: Figure 5 shown.

[0061] S4: Create a truss model

[0062] According to the spatial position characteristics of the truss members, create the truss member axis grid and create the truss model as follows:

[0063] The NewFamilyInstance function is used to create the axis grid of the truss member. The truss member is displayed as a single line in the rough mode and is used as the truss axis grid. According to the purpose and location characteristics of the truss member, text information is added to the truss member parameter "Annotation" respectively: upper chord, lower chord, vertical web, rigid frame column, rigid frame beam, upper beam, lower beam, belt leg beam, upper chord support, and lower chord support. Compared with the axis grid created using the model line, the structural frame truss member created using the above function supports users to manually modify the truss member type, which is more open and practical. Among them, "belowbraceline1" is the path Line of the truss member, which is created according to the nodes at both ends; "beamtype" is the type FamilySymbol of the truss member, where ø60x3.5 round steel pipe is used; "level" is the elevation. This embodiment selects the elevation with an elevation value of 0, which is not limited by the project template. While creating the truss member instance, modify the various properties of the instance. For specific modifications, see the following code snippet. Among them, the "Structural Use" attribute is set to "Other".

[0064]

[0065] S5: Modify truss member section type

[0066] Select the truss axis grid, and modify the cross-section types of truss members in batches according to the location characteristics and usage classification of the truss members. The specific steps are as follows:

[0067] According to the classification of truss members, create labels: upper chord, lower chord, vertical web, rigid frame column, rigid frame beam, upper beam, lower beam, belt leg beam, upper chord support, lower chord support. Select the truss axis grid created in step S4, and according to the text information in the "Notes" of the truss member parameters, classify the truss member types according to the text information and add them to the WPF form for batch modification of section types. Select the new truss member section type and batch modify the above truss member types, such as Figure 6 As shown in the figure, since the truss member type of the diagonal web is different between each node, the diagonal web type needs to be changed manually.

[0068] S6: Perform node processing, support setting, and enclosure structure creation on the created trusses;

[0069] The specific steps for node processing, support setting, and enclosure structure creation for the created trusses are as follows:

[0070] S601, according to the truss model whose cross-section type has been created and modified in step S5, align the top surfaces of the lower cross beam, the belt leg beam, and the lower frame cross beam of the truss to the top surface of the lower chord, and align the top surface of the lower chord support to the bottom surface of the lower chord; align the top surfaces of the upper cross beam and the upper frame cross beam of the truss to the top surface of the upper chord, and align the top surface of the upper chord support to the bottom surface of the upper chord;

[0071] S602, select a designated support type through the user operation interface, select the truss mounting surface with the mouse, then select the truss column, create a truss support at the intersection of the column and the mounting surface, and extend the column to the top surface of the support;

[0072] S603: Select the purlin type through the user operation interface, select the upper rigid frame beams at both ends to create roof purlins; select the columns at both ends of the same frame to create wall purlins.

[0073] The truss members created in steps S1-S5 are all center-aligned, and no steel structure connection nodes are generated. Figure 7 Some truss processing tools are shown. Through some node processing, the trusses can be quickly adjusted and modified to be consistent with the actual situation. The functions "corridor surface alignment", "truss support" and "roof purlin" are used as examples for detailed explanation.

[0074] In actual situations, the steel sections of the corridor and roof of the truss are aligned with the upper part of the chord due to the purpose and installation requirements, and the plane support is placed on the lower side of the chord. By selecting two chords on the same plane, the cross-sectional height of the chord is obtained, and all truss members within the range of the chord are collected at the same time. Traverse the collected truss members, calculate the difference between their cross-sectional height and the cross-sectional height of the chord, and adjust the alignment of different truss members by modifying the "Z-axis offset value" of the truss member. Since the path line of the truss member is still center-aligned, it is easy to import into the calculation software for analysis. The following is a code display for collecting all truss members within the range of two chords on the same plane.

[0075]

[0076] Figure 8 A truss rolling support is shown in Figure 1. By selecting the truss rest surface and the truss column, a designated rolling support is generated at the intersection and the column is extended to the top surface of the support.

[0077] Fig. 9 An operation interface for creating roof purlins is demonstrated. By selecting the beams at both ends and setting necessary offset values, spacing, slope, purlin type and other parameters, a three-dimensional model of the roof purlin is created.

[0078] Although the present invention has been disclosed as above with preferred embodiments, the embodiments are not intended to limit the present invention. Any equivalent changes or modifications made without departing from the spirit and scope of the present invention also belong to the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the content defined by the claims of this application.

Claims

1. A truss modeling method based on Revit secondary development, characterized in that: The method comprises the following steps: Build a standardized family library of truss components; Create a user interface for truss members; Create truss space layouts; Create truss models; Modify the truss member section type; Carry out node processing, support setting and enclosure structure creation for the truss.

2. The truss modeling method based on Revit secondary development according to claim 1 is characterized in that: The method used to build a standardized family library of truss components is as follows: Classify the truss components, create truss components with different section types according to the national standard section library, set the family category and visibility of the truss components, and form a standardized family library for truss components.

3. The truss modeling method based on Revit secondary development according to claim 2 is characterized in that: When categorizing truss members, the categories include upper chord, lower chord, vertical web, rigid frame column, rigid frame beam, upper beam, lower beam, belt leg beam, upper chord brace, and lower chord brace.

4. The truss modeling method based on Revit secondary development according to claim 1 is characterized in that: The method used to create the truss member user interface is as follows: Determine the parameters required to create a 3D truss model, set the parameters through the user interface framework, and create a schematic diagram of the truss standard frame.

5. The truss modeling method based on Revit secondary development according to claim 4 is characterized in that: The parameters required to create a 3D truss model include: truss span, truss height, truss width, truss slope, vertical web direction, bottom chord segment spacing, and belt leg beam positioning information.

6. The truss modeling method based on Revit secondary development according to claim 1 is characterized in that: The method used when creating a truss space layout is as follows: Set truss parameters, select insertion points, calculate endpoint coordinates of four chords, where the four chords are two upper chords and two lower chords; create four chords, and obtain line segments of the four chords; Create a plane perpendicular to the truss span direction, find the intersection points of the four chords and the plane perpendicular to the truss span direction and add them to the coordinate point set; create vertical web members, rigid frame columns, rigid frame beams, upper beams, lower beams, upper chord supports, and lower chord supports based on the spatial position relationship of the truss members and the coordinate point set; create planes where the two belt leg beams are located according to the position of the belt leg beams, that is, planes perpendicular to the width direction of the truss; traverse the lower beam line segment, find the coordinates of the intersection of the lower beam line segment and the plane where the belt leg beam is located and add them to the coordinate point set, and create all the belt leg beams along the truss span direction.

7. The truss modeling method based on Revit secondary development according to claim 1 is characterized in that: The method used to create the truss model is as follows: The NewFamilyInstance function is used to create the axis grid of the truss member. The truss member is displayed as a single line in the rough mode and is used as the truss axis grid. According to the purpose and location characteristics of the truss member, text information is added to the truss member parameter annotation: upper chord, lower chord, vertical web, rigid frame column, rigid frame beam, upper beam, lower beam, belt leg beam, upper chord support, and lower chord support.

8. The truss modeling method based on Revit secondary development according to claim 1 is characterized in that: The method used to modify the cross-section type of a truss member is as follows: Select the created truss axis grid, classify the truss member types according to text information and add them to the form for batch modification of section types, select new truss member section types, and modify them in batches.

9. The truss modeling method based on Revit secondary development according to claim 1 is characterized in that: The methods used for node processing, support setting, and enclosure structure creation of trusses are as follows: Node processing: align the top surface of the truss lower beam, belt leg beam, and lower rigid frame beam to the top surface of the lower chord, and align the top surface of the lower chord support to the bottom surface of the lower chord; align the top surface of the truss upper beam and upper rigid frame beam to the top surface of the upper chord, and align the top surface of the upper chord support to the bottom surface of the upper chord; Support settings: Select the support type, truss mounting surface, and then select the truss column. Create a truss support at the intersection of the column and the mounting surface and extend the column to the top surface of the support. Creation of enclosure structure: Select the purlin type, select the upper rigid frame beams at both ends, and create the roof purlins; Select the two end columns of the same beam to create wall purlins.