A solid modeling method for shield universal segment based on Revit secondary development

Through Revit secondary development, the coordinates and arc edges of the shield universal pipe segment are represented by parameter variables, and a solid model for the Revit plug-in to create a shield universal pipe segment in the adaptive family is solved. The creation of shield universal pipes in the existing technology is solved. The accuracy and efficiency of the film BIM model are problematic, which enables fast and accurate model creation in Revit software.

CN113987627BActive Publication Date: 2024-11-15ANHUI POLYTECHNIC UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111164130.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2024-11-15
Estimated Expiration
2041-09-30

AI Technical Summary

Technical Problem

It is difficult for the prior art to quickly and accurately create a BIM model of shield universal tube sheets in Revit software, especially because the wedge quantity and non-standard cross-section of the universal tube sheets make it impossible for existing methods to achieve accurate creation of solid information models.

Method used

Using the method based on Revit secondary development, the corner coordinates and midpoint coordinates of the shield general tube sheet and the ring arc edge line of the coordinates are represented by parameter variables. The Revit plug-in is developed to generate closed model lines for each capping block, adjacency block and standard block. And create a solid model in the adaptive family, perform slot hole setting and parameterization setting, and complete the creation of the solid information model of the shield universal tube sheet.

Benefits of technology

It realizes the BIM information model of the shield universal tube sheet quickly and accurately created in Revit software, improving the efficiency and accuracy of model creation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113987627B_ABST
    Figure CN113987627B_ABST
Patent Text Reader

Abstract

One or more embodiments of this specification provide a method for solid modeling of a universal shield segment based on secondary development of Revit. By designing the coordinates of the corner points of each segment block of the universal shield segment and the coordinates of the midpoints of the circumferential arc edge line, a Revit plug-in is developed to generate closed model lines on both sides of each capping block, adjacent block and standard block. Based on the Revit plug-in, a solid model of the capping block, adjacent block and standard block of the universal shield segment is generated in an adaptive family. Finally, the slots of the universal shield segment are set and the parameterization of the solid model is set to complete the creation of the solid information model of the universal shield segment. The present invention provides an accurate modeling method for establishing a solid information model of the universal shield segment in the Revit software, thereby improving the efficiency of model creation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of the present specification relate to a BIM entity modeling method for universal shield segments, and more particularly to an accurate entity modeling method for universal shield segments based on secondary development of Revit. Background Art

[0002] The shield segment is a lining component that supports the tunnel while the shield machine is constructing, thereby preventing the collapse and deformation of the tunnel during the construction process. The shield segment can be a common segment or a universal segment according to the linearity of the assembled tunnel. The common segment mainly includes a standard ring and a turning ring. At present, universal segments are often used in shield tunnel construction because they can be placed in both straight segments and turning segments. Therefore, they are very convenient and easy to splice. A ring of universal segments consists of a capping block, two adjacent blocks and three standard blocks. The methods for creating family entity shapes in the conventional model family provided in the Revit software include: stretching, lofting, fusion, path lofting and rotation. The universal segment has a certain amount of wedge shape. For the capping block, there are no two completely parallel faces, and its cross section and side are not exactly the same. Therefore, these methods cannot realize the creation of the entity information model of the universal segment. In Revit, it can only be created in the adaptive family, but the current Revit function needs to create many auxiliary drawing planes to achieve it. The process is cumbersome and the modeling accuracy is not high.

[0003] Revit API provides a way for third-party or advanced users of Revit to integrate their own applications into Revit software or series software, so that users can perform secondary development according to their own needs. To load and use the plug-in completed by Revit secondary development in Revit software, it must inherit the IExternalCommand and IExternalApplication interfaces. Through the Revit API, you can access Revit document data, modify or remodel the models therein, etc. Therefore, Revit secondary development is used to achieve accurate modeling for the solid BIM model of the shield universal segment. Summary of the invention

[0004] In view of this, the purpose of one or more embodiments of this specification is to propose a method for accurate modeling of shield universal segment entities based on Revit secondary development, so as to solve the problem that it is difficult to quickly and accurately create a shield universal segment BIM model in Revit software in the prior art.

[0005] Based on the above purpose, one or more embodiments of this specification provide a method for solid modeling of a universal shield segment based on secondary development of Revit. The universal shield segment includes a capping block, an adjacent block and a standard block. The solid modeling method includes:

[0006] According to the design drawings, the coordinates of the corner points of the capping block, adjacent block and standard block of the shield universal segment and the coordinates of the midpoint of the circumferential arc edge are expressed by parameter variables;

[0007] According to the coordinates, develop a Revit plug-in to generate closed model lines on both sides of each capping block, adjacent block and standard block;

[0008] Generate the solid models of the capping block, adjacent block and standard block of the shield universal segment in the adaptive family based on the Revit plug-in;

[0009] The slots of the universal shield segment are set and the parameterization of the solid model is performed to complete the creation of the solid information model of the universal shield segment.

[0010] Preferably, the number of corner point coordinates and the number of circumferential arc edge midpoints are both 24, and the coordinates of the corner points of the capping block, adjacent block and standard block of the shield universal segment and the coordinates of the midpoints of the circumferential arc edge are represented by parameter variables:

[0011] Draw the main view and top view of the shield universal segment;

[0012] Set the segment inner radius, outer radius, capping block angle, adjacent block angle, standard block angle, wedge amount and ring width parameter variable names, and mark them in the main view and top view;

[0013] Taking the center of the segment ring as the origin of the three-dimensional coordinate system, comparing the main view and the top view, the coordinates of the corner points of the capping block, adjacent block and standard block and the midpoint coordinates of the circumferential arc edge line are expressed based on the set parameter variables.

[0014] Preferably, the Revit plug-in for developing and generating closed model lines on both sides of each capping block, adjacent block and standard block includes:

[0015] In the Visual Studio environment, based on Revit API programming, a .dll file is used to generate closed model lines on both sides of the capping block, adjacent block and standard block of the shield universal segment;

[0016] Write a .addin file that Revit can use to load the .dll file.

[0017] Preferably, when programming to implement the .dll file generated by the closed model lines on both sides of the capping block, adjacent block and standard block of the shield universal segment, the AdaptiveComponentFamily-Utils.IsAdaptiveComponentFamily() function is first used in the code to determine whether the current active document is an adaptive family.

[0018] Preferably, generating the entity models of the capping block, the adjacent block and the standard block of the shield universal segment includes:

[0019] Start the developed Revit plug-in in the Revit adaptive family, input the parameter values ​​of the inner radius of the pipe segment, the outer radius of the pipe segment, the capping block angle, the adjacent block angle, the standard block angle, the wedge amount and the ring width in the plug-in operation interface, and click the button to generate the corresponding closed model lines of the capping block, adjacent block and standard block;

[0020] Select the closed model line and click "Create Shape" in the adaptive family to generate the corresponding segment block entity information model.

[0021] Preferably, when generating the closed model lines of the corresponding capping blocks, adjacent blocks and standard blocks, it is necessary to enter the Revit adaptive family and start the plug-in to generate the closed model lines of the capping blocks, adjacent blocks and standard blocks.

[0022] Preferably, the parameterized settings of each entity model include: concrete strength of the segment, water-resistance grade, number of bolts, reinforcement, material, internal dimension radius, external dimension radius, capping block angle, adjacent block angle, standard block angle, wedge amount and ring width.

[0023] From the above, it can be seen that the method for solid modeling of universal shield segments based on secondary development of Revit provided by one or more embodiments of the present specification designs the coordinates of each corner point of each segment block of the universal shield segment and the midpoint coordinates of the circumferential arc edge line, develops a Revit plug-in to generate closed model lines on both sides of each capping block, adjacent block and standard block, and generates solid models of the capping block, adjacent block and standard block of the universal shield segment in the adaptive family based on the Revit plug-in. Finally, the slots of the universal shield segment are set and the parameterization of the solid model is set to complete the creation of the solid information model of the universal shield segment, which provides an accurate modeling method for establishing the solid information model of the universal shield segment in the Revit software. Through this method, the creation of the BIM information model of the universal shield segment can be realized quickly and accurately, thereby improving the efficiency of model creation. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate one or more embodiments of the present specification 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 one or more embodiments of the present specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 A schematic flow chart of a solid modeling method according to one or more embodiments of the present specification;

[0026] Figure 2 A front view of a universal segment of one or more embodiments of this specification;

[0027] Figure 3 A top view of a general segment of one or more embodiments of this specification;

[0028] Figure 4 A plug-in flow chart for generating closed model lines on both sides of a segment block based on Revit secondary development for one or more embodiments of this specification;

[0029] Figure 5 Generate an operation plug-in interface for closing model lines on both sides of each segment block of one or more embodiments of this specification;

[0030] Figure 6 A schematic diagram of a general segment solid model of one or more embodiments of this specification;

[0031] Figure 7 This is a diagram of the parameterization setting interface of a general segment solid model for one or more embodiments of this specification. DETAILED DESCRIPTION

[0032] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in conjunction with specific embodiments.

[0033] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in one or more embodiments of this specification should be understood by people with ordinary skills in the field to which this disclosure belongs. The "first", "second" and similar words used in one or more embodiments of this specification do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0034] The embodiment of this specification provides a method for solid modeling of a universal shield segment based on secondary development of Revit. The universal shield segment includes multiple segment blocks, including a capping block, an adjacent block, and a standard block. The method includes the following steps:

[0035] S101 uses parameter variables to represent the coordinates of the corner points of the capping block, adjacent block and standard block of the shield universal segment and the coordinates of the midpoint of the circumferential arc edge line according to the design drawings.

[0036] For example, the number of corner point coordinates and the number of circumferential arc edge midpoints are both 24. The coordinates of the corner points of the capping block, adjacent block and standard block of the shield universal segment and the coordinates of the midpoints of the circumferential arc edge are represented by parameter variables:

[0037] Draw the main view and top view of the shield universal segment;

[0038] Set the segment inner radius, outer radius, capping block angle, adjacent block angle, standard block angle, wedge amount and ring width parameter variable names, and mark them in the main view and top view;

[0039] Taking the center of the segment ring as the origin of the three-dimensional coordinate system, comparing the main view and the top view, the coordinates of the corner points of the capping block, adjacent block and standard block and the midpoint coordinates of the circumferential arc edge line are expressed based on the set parameter variables.

[0040] S102 develops a Revit plug-in to generate closed model lines on both sides of each capping block, adjacent block and standard block based on coordinates;

[0041] For example, the Revit plug-in developed to generate closed model lines on both sides of each capping block, adjacent block and standard block includes:

[0042] In the Visual Studio environment, based on Revit API programming, a .dll file is used to generate closed model lines on both sides of the capping block, adjacent block and standard block of the shield universal segment;

[0043] Write a .addin file that Revit can use to load the .dll file.

[0044] As an implementation method, when programming to generate a .dll file for closed model lines on both sides of the capping block, adjacent block and standard block of a universal shield segment, the AdaptiveComponentFamilyUtils.IsAdaptiveComponentFamily() function is first used in the code to determine whether the current active document is an adaptive family.

[0045] S103 generates solid models of capping blocks, adjacent blocks and standard blocks of shield universal segments in adaptive families based on the Revit plug-in.

[0046] For example, the solid models of the capping block, adjacent block and standard block of the shield universal segment are generated as follows:

[0047] Start the Revit plug-in in the Revit adaptive family, enter the parameter values ​​of the inner radius of the pipe segment, the outer radius of the pipe segment, the capping block angle, the adjacent block angle, the standard block angle, the wedge amount and the ring width in the plug-in operation interface, and click the button to generate the corresponding closed model lines of the capping block, adjacent block and standard block;

[0048] Select the closed model line and click "Create Shape" in the adaptive family to generate the corresponding segment block entity information model.

[0049] As an implementation method, when generating the closed model lines of the corresponding capping blocks, adjacent blocks and standard blocks, it is necessary to enter the Revit adaptive family to start the plug-in to generate the closed model lines of the capping blocks, adjacent blocks and standard blocks.

[0050] S104 performs the setting of slots and holes of the shield universal segment and parameterization setting of the entity model, and completes the creation of the shield universal segment entity information model.

[0051] For example, the parametric settings of each entity model include: concrete strength of the segment, water-resistance grade, number of bolts, reinforcement, material, inner radius, outer radius, capping block angle, adjacent block angle, standard block angle, wedge amount and ring width.

[0052] Revit API provides a way for third-party or advanced users of Revit to integrate their own applications into Revit software or series software, so that users can perform secondary development according to their own needs. To load and use the plug-in completed by Revit secondary development in Revit software, it must inherit the IExternalCommand and IExternalApplication interfaces. Through the Revit API, you can access Revit document data, modify or remodel the models therein, etc. Therefore, Revit secondary development is used to achieve accurate modeling for the solid BIM model of the shield universal segment.

[0053] The embodiment of this specification provides a method for solid modeling of universal shield segments based on secondary development of Revit. By designing the coordinates of each corner point of each segment block of the universal shield segment and the midpoint coordinates of the circumferential arc edge line, a Revit plug-in is developed to generate closed model lines on both sides of each capping block, adjacent block and standard block. Based on the Revit plug-in, solid models of the capping blocks, adjacent blocks and standard blocks of the universal shield segment are generated in an adaptive family. Finally, the slots of the universal shield segment and the parameterization of the solid model are set to complete the creation of the solid information model of the universal shield segment. An accurate modeling method is provided for establishing the solid information model of the universal shield segment in the Revit software. Through this method, the creation of the BIM information model of the universal shield segment can be realized quickly and accurately, thereby improving the efficiency of model creation.

[0054] The following is a detailed introduction to the implementation steps of a method for accurate modeling of shield universal segment entities based on Revit secondary development, combined with specific cases.

[0055] Step 1: First draw the main view and top view of the general segment, such as Figure 2 and Figure 3 As shown. Let the inner radius of the segment be r, the outer radius be R, the capping block angle be a, the adjacent block angle be b, the standard block angle be c, the wedge amount be d, and the ring width be h. Mark these parameter variables in the main view and the top view, take the center of the segment ring as the origin of the three-dimensional coordinate system, set the coordinate axis, and calculate the coordinate values ​​of each corner point and arc midpoint through the angle and length parameters.

[0056] Step 2: Figure 4 The following is a flow chart of the plug-in for generating closed model lines on both sides of each segment based on Revit secondary development. Create a class library project based on C# language in Visual Studio, reference Revit API.dll and RevitAPIUI.dll files, create a form based on Windows Forms, and first determine whether the current active document is an adaptive family through the AdaptiveComponentFamilyUtils.Is-AdaptiveComponentFamily() function in the C# language programming code. Then, based on the coordinates of the corner points and arc midpoints of each segment block, create edges to form a closed loop, and then create the plane where the closed loop is located and the model line corresponding to the edge. After the code is completed, generate and debug it. At the same time, you need to write a .addin file that the plug-in can load in Revit software, and put the file into the AddIns folder under the Revit installation path (the default is: C:\Program Files\Autodesk\Revit\AddIns).

[0057] Step 3: Open Revit software, enter the adaptive family, and start the developed plug-in in the additional module tab. The operation interface after opening is as follows: Figure 5 As shown, enter the segment parameter value, click the "Parameter Assignment" button, then enter 1 in the text box above the segment block to be generated, and enter 0 for the others, click the corresponding button to generate the closed model line of the corresponding segment block, select the closed model line, and use the "Create Shape" in the Revit adaptive family to create the segment ring solid model, and complete the solid models of all blocks in the segment ring in sequence.

[0058] Step 4: Set the slots of the pipe segments. The completed solid model is as follows: Figure 6In the family type parameters, set the following parameters and values, including segment impermeability grade, concrete strength, number of bolts, steel grade, segment material, inner radius, outer radius, capping block angle, adjacent block angle, standard block angle, wedge amount and ring width, as shown in the figure below. Figure 7 , thus completing the creation of the overall shield universal segment entity information model.

[0059] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. In line with the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present specification as described above, which are not provided in detail for the sake of simplicity.

[0060] One or more embodiments of this specification are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of this specification should be included in the scope of protection of this disclosure.

Claims

1. A shield universal segment entity modeling method based on Revit secondary development, wherein the shield universal segment includes a capping block, an adjacent block and a standard block, characterized in that: The solid modeling method comprises: According to the design drawings, the coordinates of the corner points of the capping block, adjacent block and standard block of the shield universal segment and the coordinates of the midpoint of the circumferential arc edge are expressed by parameter variables; According to the coordinates, develop a Revit plug-in to generate closed model lines on both sides of each capping block, adjacent block and standard block; Generate the solid models of the capping block, adjacent block and standard block of the shield universal segment in the adaptive family based on the Revit plug-in; Set the slots of the shield universal segment and parameterize the entity model to complete the creation of the shield universal segment entity information model; The Revit plug-in developed to generate closed model lines on both sides of each capping block, adjacent block and standard block includes: In the Visual Studio environment, based on Revit API programming, a .dll file is used to generate closed model lines on both sides of the capping block, adjacent block and standard block of the shield universal segment; Write a .addin file that Revit can use to load the .dll file; When programming to generate the .dll file for the closed model lines on both sides of the capping block, adjacent block and standard block of the shield universal segment, first use the AdaptiveComponent- FamilyUtils.IsAdaptiveComponentFamily() function to determine whether the current active document is an adaptive family. If it is not an adaptive family, a reminder box will pop up to prompt you to open the adaptive family.

2. The shield universal segment entity modeling method based on Revit secondary development according to claim 1 is characterized in that: The number of corner point coordinates and the number of circumferential arc edge midpoints are both 24. The coordinates of the corner points of the capping block, adjacent block and standard block of the shield universal segment and the coordinates of the midpoints of the circumferential arc edge line represented by parameter variables include: Draw the main view and top view of the shield universal segment; Set the segment inner radius, outer radius, capping block angle, adjacent block angle, standard block angle, wedge amount and ring width parameter variable names, and mark them in the main view and top view; Taking the center of the segment ring as the origin of the three-dimensional coordinate system, comparing the main view and the top view, the coordinates of the corner points of the capping block, adjacent block and standard block and the midpoint coordinates of the circumferential arc edge line are expressed based on the set parameter variables.

3. The shield universal segment entity modeling method based on Revit secondary development according to claim 1 is characterized in that: The solid models of the capping block, adjacent block and standard block of the shield universal segment are generated as follows: Start the developed Revit plug-in in the Revit adaptive family, input the parameter values ​​of the inner radius of the pipe segment, the outer radius of the pipe segment, the capping block angle, the adjacent block angle, the standard block angle, the wedge amount and the ring width in the plug-in operation interface, and click the button to generate the corresponding closed model lines of the capping block, adjacent block and standard block; Select the closed model line and click the "Create Shape" button in the adaptive family to generate the corresponding segment block entity information model.

4. The shield universal segment entity modeling method based on Revit secondary development according to claim 3 is characterized in that: When generating the closed model lines of the corresponding capping blocks, adjacent blocks and standard blocks, you need to enter the Revit adaptive family to start the plug-in to generate the closed model lines of the capping blocks, adjacent blocks and standard blocks.

5. The shield universal segment entity modeling method based on Revit secondary development according to claim 1 is characterized in that: The parameterized settings of the entity model include: concrete strength of the segment, impermeability grade, number of bolts, reinforcement, material, inner dimension radius, outer dimension radius, capping block angle, adjacent block angle, standard block angle, wedge amount and ring width.