Intelligent BIM modeling method of tunnel based on Revit macro program

Through the intelligent modeling method based on Revit's macro program, the three-dimensional tunnel lines are fitted and the sub-family model is parameterized, which solves the problem of tunnel BIM modeling accuracy and efficiency, and realizes efficient and accurate tunnel BIM model assembly and adjustment.

CN114707220BActive Publication Date: 2025-04-25SICHUAN SHUDAO NEW STANDARD RAIL GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210403653.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-18
Publication Date
2025-04-25
Estimated Expiration
2042-04-18

AI Technical Summary

Technical Problem

In the process of creating a tunnel BIM model, the accuracy and efficiency of tunnel BIM modeling are low, especially the modeling process of long tunnels is complicated, difficult and workload.

Method used

Revit's intelligent modeling method based on macro programs is adopted, by fitting the flat curve data and vertical curve data of the tunnel, three-dimensional lines are created in Revit, the main structure and geometric features of the tunnel's main structure and auxiliary components are extracted, the sub-family model is created parameterized, and the BIM model is automatically formed and adjusted using the self-coded macro program.

Benefits of technology

It improves the accuracy and efficiency of tunnel BIM modeling, reduces modeling steps, automatically improves attribute content, reduces dependence on manual input, and improves tunnel BIM informationization capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114707220B_ABST
    Figure CN114707220B_ABST
Patent Text Reader

Abstract

The present application provides a tunnel BIM intelligent modeling method based on Revit macro program. In view of the current long tunnel BIM model with many structures and components, complex modeling process, high modeling difficulty and workload, how to quickly and intelligently arrange each tunnel structure and component accurately according to design and construction requirements to replace manual creation of long tunnel BIM model, through Revit macro program-based visual programming, and with the help of self-encoding macro program, traffic engineering routes can be directly fitted in Revit, and sub-family model driving is automatically created by self-encoding macro program, so that the process of creating BIM model no longer depends on Civil 3D and other software, and the modeling steps are reduced. Sub-family models are created in parameter form, and parameter data is used to drive the formation and adjustment of tunnel BIM model, and attribute content is automatically improved, instead of the existing manual input of attribute content to complete modeling, thereby improving the accuracy and efficiency of tunnel BIM modeling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of tunnel BIM modeling, and specifically to a tunnel BIM intelligent modeling method based on Revit macro programs. Background Art

[0002] The emergence of BIM (Building Information Modeling) technology has set off a new revolution in infrastructure construction. As a new technology, BIM has been deeply studied at home and abroad and applied in large-scale engineering construction. Practice has shown that BIM technology can indeed shorten the construction period, save construction costs, reduce construction risks, and improve the level of construction management. Tunnel design and construction involve a large number of scientific and application fields, and multiple processes overlap with each other, which has high requirements for the rationality of engineering project technology, overall quality, environmental protection and other aspects.

[0003] Although information-based models have been gradually rolled out at home and abroad, the design and construction of large-scale construction projects cannot be separated from BIM. However, the application of BIM in the domestic transportation industry is still in its infancy. Tunnels are the difficulty and pain point of mountain transportation development. Long tunnel BIM models have many structures and components, and the modeling process is complex, the modeling difficulty and workload are large. How to quickly and intelligently arrange each tunnel structure and component accurately according to design and construction requirements to replace manual creation of long tunnel BIM models is an urgent problem to be solved.

[0004] In addition, in the current process of creating tunnel BIM models, line fitting often requires the use of other line software to fit the tunnel line. The fitting process is too complicated and the accuracy is not high, resulting in low accuracy and efficiency of tunnel BIM modeling. Summary of the invention

[0005] The embodiment of the present application provides a tunnel BIM intelligent modeling method based on Revit macro program to solve the problems of low accuracy and efficiency of tunnel BIM modeling in the current tunnel BIM model creation process.

[0006] In order to solve the above problems, the embodiment of the present application discloses a tunnel BIM intelligent modeling method based on Revit macro program, the method comprising:

[0007] According to the pre-collected tunnel horizontal curve data and vertical curve data, the three-dimensional tunnel line is fitted in Revit;

[0008] Extracting the geometric features of each main structure of the tunnel and its subsidiary components, parametrically creating a sub-family model of each main structure and its subsidiary components in Revit, and setting the adjustable parameters of the corresponding sub-family model according to the geometric features to obtain a tunnel modeling family library; wherein, when the adjustable parameters of any sub-family model are modified, the geometric dimensions of the sub-family model in the tunnel modeling family library are adaptively modified;

[0009] According to different tunnel BIM model information requirements, targeting the characteristics of different main structures and their auxiliary components and engineering overviews, the family file name, pile number parameters, size parameters and attribute content of each sub-family model in the tunnel modeling family library are batch defined in an EXCEL table;

[0010] A self-encoding macro program is used to call multiple target sub-family models required for the three-dimensional line of the tunnel, and the size parameters of the target sub-family models are modified in the EXCEL table so that the target sub-family models match the three-dimensional line of the tunnel in the macro program to obtain a tunnel BIM model.

[0011] Optionally, according to the preset collected tunnel horizontal curve data and vertical curve data, the three-dimensional tunnel line is fitted in Revit, including:

[0012] According to the preset collected tunnel flat curve data, the plane coordinate data is calculated;

[0013] The plane coordinate data and the preset vertical curve data are fitted with a three-dimensional curve in Revit by using the least square method to obtain the three-dimensional line of the tunnel.

[0014] Optionally, calculating plane coordinate data according to the plane curve data includes:

[0015] Determining the linear characteristics of the tunnel flat curve according to the flat curve data;

[0016] According to the linear features of the three-dimensional curve, the plane curve data is calculated by using the intersection method or the line element method to obtain the plane coordinate data.

[0017] Optionally, create a sub-family model of each main structure and its auxiliary components parametrically in Revit, including:

[0018] Extract multiple elements of each main structure and its attached components in Revit, and set basic parameters between different elements in the multiple elements;

[0019] The basic parameters are associated in the form of data to obtain the sub-family model of each main structure and its auxiliary components created parametrically.

[0020] Optionally, according to different tunnel BIM model information requirements, and targeting the characteristics and engineering overview of different main structures and their auxiliary components, the family file name, pile number parameters, size parameters and attribute content of each sub-family model in the tunnel modeling family library are batch defined in an EXCEL table, including:

[0021] Extracting a standard family template in Revit, wherein the standard family template includes a plurality of inherent properties to be written and a plurality of adjustable properties to be written;

[0022] According to different tunnel BIM model information requirements, multiple adjustable attributes are set for different main structures and their auxiliary components and engineering overviews, and the multiple adjustable attributes are written in text form in an EXCEL table;

[0023] The attribute definitions of the plurality of adjustable attributes are implemented in the EXCEL table, wherein the content of the attribute definition includes the family file name, pile number parameter, size parameter and attribute content of each sub-family model in the tunnel modeling family library.

[0024] Optionally, implementing the attribute definitions of a plurality of the adjustable attributes in the EXCEL table includes:

[0025] Import the standard family template;

[0026] Reading a plurality of the adjustable properties in the EXCEL table, and forming the plurality of the adjustable properties into an array;

[0027] Identify multiple family file names in the array, and write the pile number parameters, size parameters and attribute content mapping in the array into the standard family template.

[0028] Optionally, a plurality of target subfamily models required for the three-dimensional line of the tunnel are called by a self-encoding macro program, and size parameters of the target subfamily models are modified in an EXCEL table so that the target subfamily models match the three-dimensional line of the tunnel in the macro program, and a tunnel BIM model is obtained by assembling the model, including:

[0029] Using a self-encoding macro program to call multiple target sub-family models required for the three-dimensional tunnel line;

[0030] Import the EXCEL table into the self-encoding macro program, and read the family file name, pile number parameters, size parameters and attribute content of the corresponding target sub-family model in the EXCEL table;

[0031] Modify the size parameters and attribute contents in the target subfamily model according to the target pile number parameters in the EXCEL table;

[0032] The pile number mileage of the three-dimensional curve of the tunnel is identified, and the size parameters and attribute contents of the target sub-family model are called according to the pile number mileage to assemble and obtain a tunnel BIM model.

[0033] In addition, to achieve the above purpose, the present application also provides a tunnel BIM intelligent modeling device based on Revit macro program, including:

[0034] Fitting module: used to fit the tunnel three-dimensional line in Revit based on the pre-collected tunnel horizontal curve data and vertical curve data;

[0035] Model creation module: used to extract the geometric features of each main structure of the tunnel and its auxiliary components, parametrically create a sub-family model of each main structure and its auxiliary components in Revit, and set the adjustable parameters of the corresponding sub-family model according to the geometric features to obtain a tunnel modeling family library; wherein, when the adjustable parameters of any sub-family model are modified, the geometric dimensions of the sub-family model in the tunnel modeling family library are adaptively modified;

[0036] Parameter definition module: used to batch define the family file name, pile number parameters, size parameters and attribute content of each sub-family model in the tunnel modeling family library in the EXCEL table according to different tunnel BIM model information requirements, the characteristics of different main structures and their auxiliary components and engineering overviews;

[0037] Model generation module: used to use a self-encoded macro program to call multiple target sub-family models required for the tunnel three-dimensional line, and modify the size parameters of the target sub-family models in the EXCEL table to match the target sub-family models with the tunnel three-dimensional line in the macro program to assemble the tunnel BIM model.

[0038] In addition, to achieve the above-mentioned purpose, the present application also provides an electronic device, the electronic device comprising:

[0039] at least one processor; and,

[0040] a memory communicatively connected to the at least one processor; wherein,

[0041] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method.

[0042] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the method.

[0043] The beneficial effects of this application are:

[0044] The embodiment of the present application provides a tunnel BIM intelligent modeling method based on Revit macro program, which obtains the tunnel three-dimensional route by fitting in Revit according to the pre-collected tunnel horizontal curve data and vertical curve data; extracts the geometric features of each main structure of the tunnel and its auxiliary components, parametrically creates a sub-family model of each main structure and its auxiliary components in Revit, and sets the adjustable parameters of the corresponding sub-family model according to the geometric features to obtain a tunnel modeling family library; wherein, when the adjustable parameters of any sub-family model are modified, the geometric dimensions of the sub-family model in the tunnel modeling family library are adaptively modified; according to different tunnel BIM model information requirements, for the characteristics of different main structures and their auxiliary components and engineering overviews, the family file name, pile number parameter, size parameter and attribute content of each sub-family model in the tunnel modeling family library are batch defined in an EXCEL table; uses a self-encoded macro program to call multiple target sub-family models required for the tunnel three-dimensional route, and modifies the size parameters of the target sub-family model in the EXCEL table, so that the target sub-family model matches the tunnel three-dimensional route in the macro program, and the tunnel BIM model is assembled.

[0045] This solution aims to solve the problem that there are many structures and components in the current long tunnel BIM model, and the modeling process is complex, the modeling difficulty and workload are large. How to quickly and intelligently arrange each tunnel structure and component according to the design and construction requirements to replace the manual creation of the long tunnel BIM model? Through Revit based on macro program visual programming, and with the help of self-coding macro program, the traffic engineering line can be directly fitted in Revit, and the sub-family model is called by the self-coding macro program to drive the automatic creation of the tunnel BIM model, so that the process of creating the BIM model no longer depends on Civil 3D and other software, reducing the modeling steps, creating sub-family models in parameter form, and using parameter data to drive the tunnel BIM model to form and adjust, automatically improve the attribute content, replace the existing manual input of attribute content to complete the modeling, and improve the accuracy and efficiency of tunnel BIM modeling. Furthermore, batch definition of attributes can not only define the attributes of the family according to project needs, but also no longer rely on manual definition by modeling workers, which improves the informationization capability of tunnel BIM and further increases the efficiency of tunnel BIM modeling. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 A schematic diagram of the production equipment structure of the hardware operating environment involved in the embodiment of the present application;

[0048] Figure 2 A flow chart of a tunnel BIM intelligent modeling method based on a Revit macro program in an embodiment of the present application;

[0049] Figure 3 A schematic diagram of a process for batch defining attributes in a tunnel BIM intelligent modeling method based on a Revit macro program in an embodiment of the present application;

[0050] Figure 4 This is a schematic diagram of the functional modules of the Revit macro-based tunnel BIM intelligent modeling device of an embodiment of the present application. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0052] At present, long tunnel BIM models have many structures and components, and the modeling process is complex, with high modeling difficulty and workload. How to quickly and intelligently arrange each tunnel structure and component according to design and construction requirements to replace manual creation of long tunnel BIM models? Considering the changes and needs in each design, construction and operation stage, establishing a tunnel BIM model is not a one-time thing, and changes will occur during design, construction and later maintenance.

[0053] To this end, this solution uses Revit based on macro program visual programming, and with the help of self-encoding macro program, it can directly fit the traffic engineering route in Revit, and use the self-encoding macro program to call the sub-family model to drive the automatic creation of the tunnel BIM model, so that the process of creating the BIM model no longer depends on software such as Civil 3D, reducing the modeling steps, creating sub-family models in parameter form, and using parameter data to drive the formation and adjustment of the tunnel BIM model, automatically improving the attribute content, replacing the existing manual input of attribute content to complete the modeling, and improving the accuracy and efficiency of tunnel BIM modeling.

[0054] Reference Figure 1 , Figure 1 This is a schematic diagram of the production equipment structure of the hardware operating environment involved in the embodiment of the present application.

[0055] like Figure 1As shown, the production equipment may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0056] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the production equipment, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0057] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and an electronic program.

[0058] exist Figure 1 In the production equipment shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the production equipment of the present invention can be set in the production equipment, and the production equipment calls the Revit macro-based tunnel BIM intelligent modeling device stored in the memory 1005 through the processor 1001, and executes the Revit macro-based tunnel BIM intelligent modeling method provided in the embodiment of the present application.

[0059] In this solution, Revit is the name of a series of software from Autodesk. The Revit series of software is built for Building Information Modeling (BIM), which helps architects design, build and maintain better quality and more energy-efficient buildings. Self-encoded macros are used to assist Autodesk Revit in doing things that cannot or are difficult to achieve on the current platform. Self-encoded macros are visual scripting programs that help users define algorithms to process data and generate geometric graphics.

[0060] In order to meet the construction and management functions of the tunnel project throughout its life cycle, reference Figure 2 , Figure 2 A flowchart of the steps of the tunnel BIM intelligent modeling method based on the macro program of Revit in the embodiment of the present application is shown, and the method may include the following steps:

[0061] Step S101: According to the pre-collected tunnel horizontal curve data and vertical curve data, the three-dimensional tunnel line is fitted in Revit.

[0062] In the specific implementation process, horizontal curve refers to the general term for curves at the turning point of the route in the plane line; vertical curve refers to the curve connecting two adjacent slope sections on the longitudinal section of the line with the slope change point as the intersection point; the three-dimensional line of the tunnel is directly obtained through operations in the Revit software.

[0063] Step S102: extracting the geometric features of each main structure of the tunnel and its subsidiary components, parametrically creating a sub-family model of each main structure and its subsidiary components in Revit, and setting the adjustable parameters of the corresponding sub-family model according to the geometric features to obtain a tunnel modeling family library; wherein, when modifying the adjustable parameters of any sub-family model, the geometric dimensions of the sub-family model in the tunnel modeling family library are adaptively modified.

[0064] In the specific implementation process, the main structure of the tunnel refers to the building built underground or underwater or in the mountain, where railways are laid or roads are built for motor vehicles to pass. It mainly includes lining, and concrete is commonly used as the material for the lining. There are also sprayed anchor mesh structures as lining. The auxiliary components of the tunnel generally include drainage facilities, lighting facilities, ventilation facilities and safety avoidance facilities. The purpose of building auxiliary components is to ensure the safe passage of vehicles in the tunnel and to ensure the normal use of the tunnel. Adjustable parameters are parameters that can be modified according to actual design requirements. Geometric features refer to the characteristics used to generate geometric figures. The tunnel modeling family library contains multiple sub-family models.

[0065] Step S103: According to different tunnel BIM model information requirements, targeting the characteristics of different main structures and their auxiliary components and engineering overviews, the family file name, pile number parameters, size parameters and attribute content of each sub-family model in the tunnel modeling family library are batch defined in an EXCEL table.

[0066] In the specific implementation process, the family file name of the sub-family model includes: secondary lining, anchor rod, steel bar and primary lining; the size parameters include the secondary lining longitudinal slope, anchor rod length, steel mesh specifications, etc., and the pile number parameters include the pile number code. It should be noted that the pile number parameters and size parameters defined here do not include actual values.

[0067] Step S104: using a self-encoding macro program to call multiple target sub-family models required for the three-dimensional line of the tunnel, and modifying the size parameters of the target sub-family models in an EXCEL table so that the target sub-family models match the three-dimensional line of the tunnel in the macro program, and constructing a tunnel BIM model.

[0068] In the specific implementation process, the self-encoded macro program is obtained through secondary development and is used to call the target sub-family model. The target sub-family model is any sub-family model among the multiple sub-family models corresponding to each main structure and its auxiliary components. After modifying the size parameters of the target sub-family model, the multiple target sub-family models with modified size parameters are combined to obtain the actual required tunnel BIM model.

[0069] This solution aims to solve the problems of long tunnel BIM models with many structures and components, complex modeling process, difficulty and workload. Through Revit macro-based visual programming, and with the help of self-encoding macros, traffic engineering routes can be directly fitted in Revit. The self-encoding macros are used to call sub-family models to drive the automatic creation of tunnel BIM models, so that the process of creating BIM models no longer depends on software such as Civil 3D, reducing the steps of modeling, creating sub-family models in parameter form, and using parameter data to drive the formation and adjustment of tunnel BIM models, automatically improving attribute content, replacing the existing manual input of attribute content to complete modeling, and improving the accuracy and efficiency of tunnel BIM modeling. Furthermore, batch definition of attributes can not only define the attributes of the family according to project needs, but also no longer rely on manual definition by modeling workers, improving the informationization capabilities of tunnel BIM and further increasing the efficiency of tunnel BIM modeling.

[0070] In the present application, the implementation steps of fitting the three-dimensional line of the tunnel in Revit according to the preset collected tunnel horizontal curve data and vertical curve data in step S101 may include:

[0071] Step S101-1: Calculate plane coordinate data according to preset collected tunnel plane curve data;

[0072] Step S101-2: Fitting the plane coordinate data and the preset vertical curve data into a three-dimensional curve in Revit by using the least squares method to obtain the three-dimensional line of the tunnel.

[0073] Wherein, step S101-1 can be specifically implemented by the following steps:

[0074] Step S101-1-1: determining the linear characteristics of the tunnel horizontal curve according to the horizontal curve data;

[0075] Step S101-1-2: According to the linear features of the three-dimensional curve, the plane curve data is calculated by using the intersection method or the line element method to obtain the plane coordinate data.

[0076] Among them, when the intersection method is used to calculate the horizontal curve data, the following horizontal curve data can be obtained from the "Horizontal Curve Element Table" in the line design: starting coordinates, intersection curve elements and end point coordinates, the intersection curve elements include intersection coordinates, curve radius, front easement curve length, and rear easement curve length; the starting coordinates are QD starting point coordinates or previous intersection coordinates JD; the end point coordinates are end point coordinates or rear intersection coordinates JD. The horizontal curve data fitted by the intersection method can be shown in Table 1.

[0077] Refer to Table 1, which shows the flat curve data obtained by fitting the intersection method.

[0078] Table 1 Flat curve data fitted by intersection method

[0079]

[0080] When the horizontal curve data is calculated using the line element method, the following horizontal curve data can be obtained from the "Horizontal Curve Element Table" in the line design: the line type, starting point coordinates, starting azimuth, starting radius, ending radius, deflection direction and line element length of each line segment. The horizontal curve data fitted using the line element method are shown in Table 2.

[0081] Table 2 Flat curve data fitted by line element method

[0082]

[0083]

[0084] As for the choice of intersection method or line element method, in general, the intersection method is mainly applicable to symmetrical or asymmetrical transition curves and circular curves. Therefore, when the line characteristics of the tunnel flat curve meet the transition curve and circular curve, the intersection method can be used to extract the tunnel flat curve data from the flat curve element table in the line design; on the contrary, when the line characteristics of the tunnel flat curve meet the front transition curve, the length of the rear transition curve is 0 or the three-unit curve, the line element method should be used. In addition, according to the line characteristics of the tunnel flat curve, when the line type of the tunnel flat curve is relatively uncomplicated and the data supports it, the intersection method can be used to fit the required line faster; when the tunnel flat curve is more complex, the line element method is more applicable.

[0085] In the present application, the vertical curve data in step S101-2 can be extracted from the pre-obtained line design "slope table", and the vertical curve data can include the slope change mileage, slope change elevation and vertical curve arc length, wherein the vertical curve arc length is the vertical curve arc radius in the circular curve type, or the parabola length in the parabola type. The extracted vertical curve data can be shown in Table 3.

[0086] Table 3 Vertical curve data

[0087]

[0088] In this application, as far as step S101-2 is implemented, the program module can be developed in Revit with the help of the line fitting principle method, and the plane coordinate data and the vertical curve data are fitted with a three-dimensional curve by the least squares method to obtain the three-dimensional line of the tunnel. Least squares approximation is a commonly used numerical approximation fitting method. When the approximation fitting function is a polynomial, it is a polynomial function approximation, and the fitting of the three-dimensional curve needs to be implemented with the least squares method-polynomial fitting function. Among them, the least squares curve fitting process is to calculate the interpolation square sum of the plane coordinate data and the function fitting value to reach the minimum as the best fitting result. This calculation formula can refer to the relevant existing technology and will not be elaborated here.

[0089] In the present application, the parametric creation of the sub-family model of each main structure and its attached components in Revit in step S102 may include the following steps:

[0090] Extract multiple elements of each main structure and its attached components in Revit, and set basic parameters between different elements in the multiple elements;

[0091] In the specific implementation process, the primitive generally refers to the basic graphic element. Any graphic expression is composed of a number of different points, lines, surface patterns or the same pattern cycle combination. These points, lines, and surface patterns are the basic graphic elements. Setting the basic parameters of the primitive can increase the geometric connection between multiple sub-family models.

[0092] The basic parameters are associated in the form of data to obtain the sub-family model of each main structure and its auxiliary components created parametrically.

[0093] In the specific implementation process, the basic parameters are associated in the form of data to facilitate the control and management of the parameters of the sub-family model, so that when the adjustable parameters of any sub-family model are subsequently modified, the geometric dimensions of the sub-family model in the tunnel modeling family library are adaptively modified.

[0094] As shown in the above scheme, in the BIM modeling process, it is difficult to quickly and accurately create the size, angle, relative coordinates and other elements of the sub-family model of the main structure and its auxiliary components. The parametric creation method in the above steps is used to associate the relevant elements in the BIM model, and set the attributes of the sub-family model size, angle, relative coordinates and other elements, that is, the sub-family model can be created and modified in the form of parameters. By writing formulas or associating element parameters with conditional language to meet certain geometric and quantitative relationships, they restrict each other. In order to modify one of the element parameters, the associated related parameters will change together, thereby achieving the function of quickly modifying the BIM model.

[0095] In this application, the process of parameterizing and creating a subfamily model is described in detail with reference to the following examples:

[0096] For example, a parameterized model is established for the lining body, wherein the lining body includes a secondary lining and a primary lining.

[0097] In the specific implementation process, the secondary lining is modeled parametrically. The inner and outer contours of the tunnel secondary lining are mainly composed of five-center circle arcs that are tangent to each other. In the drawing process, it is first necessary to use the size parameters to find the relative coordinates of the fixed center of the circle, and use the fixed center of the circle to draw the corresponding arc. The length of the arc is controlled by the angle to achieve the purpose of the five arcs being tangent and non-conflicting. The five arcs are associated through geometric constraints and size constraints to make the degrees of freedom and constraints equal. In different secondary linings, only static values ​​or formulas need to be adjusted to complete the drawing of the secondary lining contour, thereby meeting the contour requirements of various lining types. After establishing a contour system that can be driven by parameterization, the lofting, stretching, fusion, and shearing operations are implemented according to the spatial creation function of the modeling, and then different three-dimensional lining Revit family models are created.

[0098] Specifically, the inner contour of the tunnel is mainly centered at five fixed points with radius r 1 To r 4 Draw an arc at a certain angle to form the inner contour, R 1 To R 4 Draw the outer contour at a certain angle; create an 1 (0, 0) is the relative coordinate system of the center of the circle, find O 2 (X 2 , Y 2 ), O' 2 (-X 2 , Y 2 ), O 3 (X 3 , Y 3 ), O' 3 (-X 3 , Y 3 ) and the center of the invert O' 4(0, Y 4 ) Draw arcs with their respective radii and angles according to the center point positions in the design drawings, and lock the tangent geometric relationship, so that the inner circle contour can be drawn in a parametric way. The five-center circle outer contour Ri is calculated and drawn based on the geometry and value of the radius of the tunnel inner contour. The calculation implementation formula is as follows:

[0099] R i =r i +L

[0100] Where r i is the radius length of the inner contour with the same center, and L is the lining thickness value.

[0101] Refer to Table 4, which shows the adjustable parameters of the secondary lining profile.

[0102] Table 4 Adjustable parameters of the secondary lining profile

[0103]

[0104]

[0105] Further create a standard family template file through Revit, create a reference line in the coordinate center of the standard family template, and set the length dimension parameters and longitudinal slope angle parameters. Use the reference line as the standard layout path, insert the outline of the lining sub-family model to be modeled for layout, and by setting the length dimension parameters and longitudinal slope angle parameters of the layout, you can enter relevant parameters to adjust the length and longitudinal slope of the secondary lining.

[0106] Refer to Table 5, which shows the adjustable parameters of the standard family template.

[0107] Table 5 Adjustable parameters of the second lining standard family template

[0108]

[0109] Furthermore, referring to the above steps of parameterizing and modeling the secondary lining, parameterize and model the primary lining.

[0110] A parametric model is established for the supporting components in the tunnel, which mainly include anchor rods, steel arch frames and grilles.

[0111] In the specific implementation process, the size of the designed anchor rods and their effective positions in the tunnel vary according to the tunnel surrounding rock grade and construction plan, and the forms of the steel arches and grilles also vary.

[0112] Specifically, in the process of parametric modeling of anchor rods, there are differences in diameter, length and number of anchor rods used in various lining types, and the anchor rods act on the arch and the side wall.

[0113] In the process of establishing the anchor rod parameter model, first create a new standard family template, set a single anchor rod reference line as the anchor rod layout path in the standard family template file, set the anchor rod layout length as an instance parameter, and mark the anchor rod radius as the profile parameter in the layout profile. In tunnel modeling, the modeling of anchor rod subfamilies with different lengths and radii can be completed by adjusting the parameters. In order to make the anchor rod model more in line with the actual application of the project, an anchor plate is set at the bottom of the anchor rod.

[0114] Refer to Table 6, which shows the adjustable parameters of the anchor standard family template.

[0115] Table 6 Adjustable parameters of anchor standard family template

[0116]

[0117] Different from other supporting components placed in vertical arrays along the tunnel direction, anchors are arranged at certain angles and spacings in the design of tunnel anchor support to achieve better mechanical effects. Therefore, when drawing the anchor subfamily model, the curve array modeling function is used, and the angle of the anchor staggered and the number of arrays are generally adjusted by designing size parameters to meet the design and construction standards.

[0118] Furthermore, in the tunnel support components, the steel arch frame and the grille are vertically distributed along the tunnel direction. The modeling process is basically consistent with the establishment principle and method of the above-mentioned anchor subfamily model, which will not be elaborated here.

[0119] The rest of the tunnel structures are modeled parametrically.

[0120] In the specific implementation process, according to the design standards and use requirements of the tunnel, the tunnel also contains some conventional structures and rail transit pavement structures. In the actual design and construction, the tunnel construction limits and inner contours have not changed. The conventional structures inside have no size and structural changes, and the auxiliary structures have no obvious geometric parameter characteristics, and do not have universality and secondary utilization value.

[0121] In the actual BIM modeling process of the tunnel, after confirming that the tunnel structure design and construction drawings are correct, the AutoCAD file is imported into Revit, and the inner and outer contours of the remaining tunnel structures are created by picking lines, and the closed graphics are used to realize the lofting to form the structural geometry. In addition, the longitudinal slope and lofting length and other parameters are set in the same way as the parametric establishment of the second lining sub-family model mentioned above to realize the parametric modeling of sub-family models such as cable trenches, drainage ditches, invert backfill, tracks, ballast and open-cut tunnel portals. The created sub-family models are exported and saved by classification and naming to form a tunnel modeling family library for calling when building the BIM model.

[0122] In this application, step S103 specifically includes the following contents:

[0123] S103-1: extracting a standard family template in Revit, wherein the standard family template includes a plurality of inherent properties to be written and a plurality of adjustable properties to be written;

[0124] S103-2: according to different tunnel BIM model information requirements, and targeting the characteristics and engineering overviews of different main structures and their auxiliary components, a plurality of the adjustable attributes are set, and the plurality of the adjustable attributes are written in text form in an EXCEL table;

[0125] S103-3: Implementing attribute definitions of the plurality of adjustable attributes in the EXCEL table, wherein the content of the attribute definition includes the family file name, pile number parameters, size parameters and attribute content of each sub-family model in the tunnel modeling family library.

[0126] In the specific implementation process, it is necessary to set the adjustable parameters of the standard family template in Revit to parameterize the creation of sub-family models, so that when the adjustable parameters of any sub-family model are modified later, the geometric dimensions of the sub-family model in the tunnel modeling family library can be adaptively modified, thereby making the creation of BIM models more convenient and quick.

[0127] This solution quickly and batch-defines the properties of each sub-family model for the tunnel BIM model family components. In the batch definition process, the attribute types that need to be defined for the sub-family model are counted in the EXCEL table according to each family file name, and the attribute content set in the tunnel BIM modeling family library and the EXCEL table is read by writing code blocks to realize the attribute definition of the sub-family model. In the attribute writing process, this solution considers the display and sharing of attribute information, and uses the Select BuiltlnParameter Group node block to divide the attributes to be defined into IFC attribute parameters to meet the model attribute interaction.

[0128] Reference Figure 3 In some embodiments, step S103-3 further includes the following contents:

[0129] Import the standard family template;

[0130] Reading a plurality of the adjustable properties in the EXCEL table, and forming the plurality of the adjustable properties into an array;

[0131] Identify multiple family file names in the array, and write the pile number parameters, size parameters and attribute content mapping in the array into the standard family template.

[0132] In the specific implementation process, first create a tunnel standard family template in Revit, and load the parametrically created tunnel modeling family library into the project file.

[0133] The data of modeling parameters are based on the tunnel design and construction drawings, and the lining types corresponding to the pile number parameters are counted. The sub-family models corresponding to the pile number parameters are recorded in an Excel table, and the attribute content of the sub-family models defined in batches during the parametric modeling process is filled in the table. If the size parameters in the sub-family model need to be changed, the content in the EXCEL table file is also read through the self-encoded macro program node.

[0134] In some embodiments, step S104 specifically includes the following contents:

[0135] Using a self-encoding macro program to call multiple target sub-family models required for the three-dimensional tunnel line;

[0136] Import the EXCEL table into the self-encoding macro program, and read the family file name, pile number parameters, size parameters and attribute content of the corresponding target sub-family model in the EXCEL table;

[0137] Modify the size parameters and attribute contents in the target subfamily model according to the target pile number parameters in the EXCEL table;

[0138] The pile number mileage of the three-dimensional curve of the tunnel is identified, and the size parameters and attribute contents of the target sub-family model are called according to the pile number mileage to assemble and obtain a tunnel BIM model.

[0139] In addition, to achieve the above purpose, refer to Figure 4 , this application also provides a tunnel BIM intelligent modeling device based on Revit macro program, including:

[0140] Fitting module: used to fit the tunnel three-dimensional line in Revit based on the pre-collected tunnel horizontal curve data and vertical curve data;

[0141] Model creation module: used to extract the geometric features of each main structure of the tunnel and its auxiliary components, parametrically create a sub-family model of each main structure and its auxiliary components in Revit, and set the adjustable parameters of the corresponding sub-family model according to the geometric features to obtain a tunnel modeling family library; wherein, when the adjustable parameters of any sub-family model are modified, the geometric dimensions of the sub-family model in the tunnel modeling family library are adaptively modified;

[0142] Parameter definition module: used to batch define the family file name, pile number parameters, size parameters and attribute content of each sub-family model in the tunnel modeling family library in the EXCEL table according to different tunnel BIM model information requirements, the characteristics of different main structures and their auxiliary components and engineering overviews;

[0143] Model generation module: used to use a self-encoded macro program to call multiple target sub-family models required for the tunnel three-dimensional line, and modify the size parameters of the target sub-family models in the EXCEL table to match the target sub-family models with the tunnel three-dimensional line in the macro program to assemble the tunnel BIM model.

[0144] It should be noted that each module in the tunnel BIM intelligent modeling device based on Revit macro program in this embodiment corresponds one by one to each step in the tunnel BIM intelligent modeling method based on Revit macro program in the aforementioned embodiment. Therefore, the specific implementation of this embodiment can refer to the aforementioned implementation, which will not be repeated here.

[0145] In some embodiments, the fitting module further comprises:

[0146] Calculation module: used to calculate plane coordinate data based on preset tunnel flat curve data;

[0147] Acquisition module: used to fit the plane coordinate data and the preset vertical curve data in Revit through the least square method to obtain the three-dimensional line of the tunnel.

[0148] In some embodiments, the obtaining module is further configured to:

[0149] Determining the linear characteristics of the tunnel flat curve according to the flat curve data;

[0150] According to the linear features of the three-dimensional curve, the plane curve data is calculated by using the intersection method or the line element method to obtain the plane coordinate data.

[0151] In some embodiments, the model creation module is further configured to:

[0152] Extract multiple elements of each main structure and its attached components in Revit, and set basic parameters between different elements in the multiple elements;

[0153] The basic parameters are associated in the form of data to obtain the sub-family model of each main structure and its auxiliary components created parametrically.

[0154] In some embodiments, the parameter definition module includes:

[0155] Extraction module: used for extracting a standard family template in Revit, wherein the standard family template includes a plurality of inherent properties to be written and a plurality of adjustable properties to be written;

[0156] Attribute writing module: used to set a plurality of the adjustable attributes according to different tunnel BIM model information requirements, the characteristics of different main structures and their auxiliary components and engineering overviews, and write the plurality of the adjustable attributes in text form in an EXCEL table;

[0157] Attribute definition module: used to implement the attribute definition of multiple adjustable attributes in the EXCEL table, wherein the content of the attribute definition includes the family file name, pile number parameter, size parameter and attribute content of each sub-family model in the tunnel modeling family library.

[0158] In some embodiments, the attribute definition module is further configured to:

[0159] Import the standard family template;

[0160] Reading a plurality of the adjustable properties in the EXCEL table, and forming the plurality of the adjustable properties into an array;

[0161] Identify multiple family file names in the array, and write the pile number parameters, size parameters and attribute content mapping in the array into the standard family template.

[0162] In some embodiments, the model generation module is further configured to:

[0163] Using a self-encoding macro program to call multiple target sub-family models required for the three-dimensional tunnel line;

[0164] Import the EXCEL table into the self-encoding macro program, and read the family file name, pile number parameters, size parameters and attribute content of the corresponding target sub-family model in the EXCEL table;

[0165] Modify the size parameters and attribute contents in the target subfamily model according to the target pile number parameters in the EXCEL table;

[0166] The pile number mileage of the three-dimensional curve of the tunnel is identified, and the size parameters and attribute contents of the target sub-family model are called according to the pile number mileage to assemble and obtain a tunnel BIM model.

[0167] In addition, in one embodiment, an embodiment of the present application also provides a production device, which includes a processor, a memory, and a computer program stored in the memory, and the computer program implements the steps of the method in the aforementioned embodiment when executed by the processor.

[0168] In addition, in one embodiment, an embodiment of the present application further provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method in the aforementioned embodiment are implemented.

[0169] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories. The computer may be various computing devices including intelligent terminals and servers.

[0170] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0171] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0172] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0173] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0174] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0175] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0176] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0177] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0178] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. "And / or" means that either one of the two can be selected, or both can be selected. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0179] The above is a detailed introduction to the Revit macro-based tunnel BIM intelligent modeling method provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. Revit macro-based tunnel BIM intelligent modeling method, characterized by: The method comprises: According to the pre-collected tunnel horizontal curve data and vertical curve data, the three-dimensional tunnel line is fitted in Revit; Extracting the geometric features of each main structure of the tunnel and its subsidiary components, parametrically creating a sub-family model of each main structure and its subsidiary components in Revit, and setting the adjustable parameters of the corresponding sub-family model according to the geometric features to obtain a tunnel modeling family library; wherein, when the adjustable parameters of any sub-family model are modified, the geometric dimensions of the sub-family model in the tunnel modeling family library are adaptively modified; According to different tunnel BIM model information requirements, targeting the characteristics of different main structures and their auxiliary components and engineering overviews, the family file name, pile number parameters, size parameters and attribute content of each sub-family model in the tunnel modeling family library are batch defined in an EXCEL table; A self-encoding macro program is used to call multiple target sub-family models required for the three-dimensional line of the tunnel, and the size parameters of the target sub-family models are modified in the EXCEL table so that the target sub-family models match the three-dimensional line of the tunnel in the macro program to obtain a tunnel BIM model.

2. The method according to claim 1, characterized in that According to the preset horizontal curve data and vertical curve data of the tunnel, the three-dimensional line of the tunnel is fitted in Revit, including: According to the preset collected tunnel flat curve data, the plane coordinate data is calculated; The plane coordinate data and the preset vertical curve data are fitted with a three-dimensional curve in Revit by using the least square method to obtain the three-dimensional line of the tunnel.

3. The method according to claim 2, characterized in that According to the plane curve data, plane coordinate data is calculated, including: Determining the linear characteristics of the tunnel horizontal curve according to the horizontal curve data; According to the linear features of the three-dimensional curve, the plane curve data is calculated by using the intersection method or the line element method to obtain the plane coordinate data.

4. The method according to claim 1, characterized in that: Create sub-family models of each main structure and its auxiliary components parametrically in Revit, including: Extract multiple elements of each main structure and its attached components in Revit, and set basic parameters between different elements in the multiple elements; The basic parameters are associated in the form of data to obtain the sub-family model of each main structure and its auxiliary components created parametrically.

5. The method according to claim 1, characterized in that According to the information requirements of different tunnel BIM models, the family file name, pile number parameters, size parameters and attribute content of each sub-family model in the tunnel modeling family library are batch defined in the EXCEL table according to the characteristics and engineering overview of different main structures and their auxiliary components, including: Extracting a standard family template in Revit, wherein the standard family template includes a plurality of inherent properties to be written and a plurality of adjustable properties to be written; According to different tunnel BIM model information requirements, multiple adjustable attributes are set for different main structures and their auxiliary components and engineering overviews, and the multiple adjustable attributes are written in text form in an EXCEL table; The attribute definitions of the plurality of adjustable attributes are implemented in the EXCEL table, wherein the content of the attribute definition includes the family file name, pile number parameter, size parameter and attribute content of each sub-family model in the tunnel modeling family library.

6. The method according to claim 5, characterized in that Implementing the attribute definitions of the plurality of adjustable attributes in the EXCEL table includes: Import the standard family template; Reading a plurality of the adjustable properties in the EXCEL table, and forming the plurality of the adjustable properties into an array; Identify multiple family file names in the array, and write the pile number parameters, size parameters and attribute content mapping in the array into the standard family template.

7. The method according to claim 1, characterized in that The self-encoding macro program is used to call multiple target sub-family models required for the three-dimensional line of the tunnel, and the size parameters of the target sub-family models are modified in the EXCEL table so that the target sub-family models match the three-dimensional line of the tunnel in the macro program, and the tunnel BIM model is constructed, including: Using a self-encoding macro program to call multiple target sub-family models required for the three-dimensional tunnel line; Import the EXCEL table into the self-encoding macro program, and read the family file name, pile number parameters, size parameters and attribute content of the corresponding target sub-family model in the EXCEL table; Modify the size parameters and attribute contents in the target subfamily model according to the target pile number parameters in the EXCEL table; The pile number mileage of the three-dimensional curve of the tunnel is identified, and the size parameters and attribute contents of the target sub-family model are called according to the pile number mileage to assemble and obtain a tunnel BIM model.

8. Revit macro-based tunnel BIM intelligent modeling device, characterized by: include: Fitting module: used to fit the tunnel three-dimensional line in Revit based on the pre-collected tunnel horizontal curve data and vertical curve data; Model creation module: used to extract the geometric features of each main structure of the tunnel and its auxiliary components, parametrically create a sub-family model of each main structure and its auxiliary components in Revit, and set the adjustable parameters of the corresponding sub-family model according to the geometric features to obtain a tunnel modeling family library; wherein, when the adjustable parameters of any sub-family model are modified, the geometric dimensions of the sub-family model in the tunnel modeling family library are adaptively modified; Parameter definition module: used to batch define the family file name, pile number parameters, size parameters and attribute content of each sub-family model in the tunnel modeling family library in the EXCEL table according to different tunnel BIM model information requirements, the characteristics of different main structures and their auxiliary components and engineering overviews; Model generation module: used to use a self-encoded macro program to call multiple target sub-family models required for the tunnel three-dimensional line, and modify the size parameters of the target sub-family models in the EXCEL table to match the target sub-family models with the tunnel three-dimensional line in the macro program to assemble the tunnel BIM model.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.