Revit-based method for extracting key parameters of mechanical and electrical connection engineering quantities
By using exhaustive search and APIs to break down connectors in Revit software and obtain connector parameters, the problem of Revit software being unable to extract the quantities of electromechanical connectors was solved, achieving accurate conversion of connector quantities and accuracy of quantity information.
Patent Information
- Application Number
- CN202411579115.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2044-11-07
AI Technical Summary
Revit software cannot directly extract the quantities of electromechanical connections, resulting in large calculation accuracy errors and failing to meet the requirements of quota calculation.
By exhaustively identifying all forms of connectors in Revit software, finding split points and splitting connectors, obtaining parameter information of the connection points with the help of APIs, and calculating the length and shape dimensions of the pipelines after splitting, the quantity of connectors can be accurately calculated.
It enables precise extraction of connector quantities, compensates for functional deficiencies in Revit software, provides more accurate quantity information, and supports the accuracy of on-site material cutting lists.
Smart Images

Figure CN119740349B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of building information modeling technology, and in particular to a method for extracting key parameters of electromechanical connection components based on Revit. Background Technology
[0002] While Revit is a powerful BIM (Building Information Modeling) software, it has certain limitations in extracting pipeline quantities. For example, Revit's built-in schedule function can extract pipeline quantity information, but it cannot extract the quantities of pipe fittings, air duct fittings, and cable tray accessories (hereinafter, water pipes, air ducts, and cable tray connectors are referred to as connectors).
[0003] When calculating quantities of engineering works according to quotas, the quantity of connectors needs to be converted into pipeline quantities. Currently, Revit software itself does not support the direct extraction of this information. While some approaches exist to convert connector quantities into pipeline quantities, they all suffer from significant calculation accuracy errors. Therefore, a method for extracting key parameters of MEP connector quantities based on Revit is needed to solve the problem of large calculation accuracy errors in existing technologies. Summary of the Invention
[0004] The purpose of this invention is to provide a method for extracting key parameters of electromechanical connector quantities based on Revit, which can solve the problem of large accuracy error in the calculation of connector quantities in the prior art.
[0005] This invention is implemented as follows:
[0006] A method for extracting key parameters of electromechanical connector quantities based on Revit, comprising the following steps:
[0007] Step 1: Use an exhaustive method to determine all connection types for ducts, water pipes, and cable trays in Revit software;
[0008] Step 2: Locate the split point S of the connector and split the connector at the split point S;
[0009] Step 3: Using the split point S, split the connector into multiple pipelines and calculate its key engineering parameter: length;
[0010] Step 4: Using the Shape parameter and Width, Height or Radius parameter of each connection point C, obtain the shape and size information of the split pipeline;
[0011] Step 5: For pipeline quantity increase parameters that are not present in the connector but are required, obtain them by searching for the parameter information of the pipeline connected to connection point C; if there is no connected pipeline at connection point C, obtain the information by searching for the pipelines connected to other connection points C; if there is no connected pipeline at all connection points C, assign the required pipeline quantity increase parameters to "unknown" to achieve logical integrity.
[0012] Step 6: Decompose and convert all connectors into pipeline information to obtain the key engineering quantity parameters of connectors in all pipelines.
[0013] In step 1, the connector types include connectors with 2 connection points, connectors with 3 connection points, and connectors with 4 connection points; wherein, connectors with 2 connection points include vertical connectors, connectors with included angles, and connectors with parallel shapes; connectors with 3 connection points include T-shaped connectors and Y-shaped connectors; and connectors with 4 connection points include cross-shaped connectors and Y-shaped connectors.
[0014] Step 2, the step of finding the split point, includes:
[0015] Step 2.1: Locate all valid connection points C of the connectors using the connector's API;
[0016] Step 2.2: Find the connection direction BasisZ for each connection point C;
[0017] Step 2.3: Starting from one of the connector's connection points C, construct a straight line with the connection direction BasisZ of that connection point as the direction;
[0018] Step 2.4: When the number of connection points C is 2, first determine whether the two lines are parallel. If they are, take the midpoint of the two connection points C as the split point S; otherwise, calculate the nearest point of each line to the other and take the midpoint of the two nearest points as the split point S.
[0019] When the number of connection points C is 3, first find two parallel straight lines, and construct a new straight line newline with the starting point of the two straight lines, i.e. the connection point C. Then find the intersection point of the new straight line newline and the third straight line, and take the intersection point as the split point S.
[0020] When the number of connection points C is 4, first find two parallel straight lines, and construct a new straight line newline1 using the starting point of these two lines, i.e., connection point C. If the other two lines are parallel, construct a second new straight line newline2 using the starting point of these two lines, i.e., connection point C. Use the intersection of the first new straight line newline1 and the second new straight line newline2 as the split point S. If the other two lines are not parallel, find the intersection of the first new straight line newline1 with the third and fourth straight lines, and use this intersection point as the split point S.
[0021] In step 3, the distance between each connection point C and the split point S of the connector is calculated, which is the length parameter of the pipeline after splitting.
[0022] Compared with the prior art, the present invention has the following advantages:
[0023] 1. This invention compensates for the inherent functional deficiencies of Revit software by splitting and converting pipe information through connectors. As long as the geometric logic is correct and the connection is established, the quantity of connectors can be accurately converted into the quantity of pipelines using the API of Revit software. There are no restrictions on connector families. It can accurately obtain and successfully extract key engineering quantity parameters such as the length, shape, and size of connectors such as pipe fittings, air duct fittings, cable tray accessories, pipe accessories, and air duct accessories. The extraction method is simple and easy to operate, and the extracted engineering quantity information is more accurate.
[0024] 2. This invention extracts the quantities of connectors based on Revit software, without requiring additional standardization or adjustment to the BIM model. It is also more universal and comprehensive, covering all connector types in Revit software. Furthermore, this method can be used to extract key parameters of connector quantities from any 3D model that has connection point information.
[0025] 3. This invention can extract all engineering quantities of electromechanical pipelines from the BIM model according to the quota, which expands the application depth of the BIM model and can provide a more accurate basis for on-site material cutting list. Attached Figure Description
[0026] Figure 1 This is a flowchart of the method for extracting key parameters of electromechanical connection components based on Revit, according to the present invention.
[0027] Figure 2 This is a diagram showing three structural forms of connectors with two connection points in the Revit-based method for extracting key parameters of electromechanical connectors in this invention.
[0028] Figure 3These are diagrams of two structural forms of connectors with three connection points in the Revit-based method for extracting key parameters of electromechanical connector quantities in this invention.
[0029] Figure 4 These are diagrams showing two structural forms of connectors with four connection points in the Revit-based method for extracting key parameters of electromechanical connectors in this invention. Detailed Implementation
[0030] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.
[0031] Please see the appendix Figure 1 A method for extracting key parameters of electromechanical connector quantities based on Revit, comprising the following steps:
[0032] Step 1: Use an exhaustive method to determine all connection types for ducts, water pipes, and cable trays in Revit software.
[0033] Please see the appendix Figure 2 , attached Figure 2 Three structural forms of connectors with two connection points are listed: (a) is a vertical connector, (b) is an angled connector, and (c) is a parallel connector.
[0034] Please see the appendix Figure 3 , attached Figure 3 Two structural forms of connectors with three connection points are listed, where (d) is a T-shaped connector and (e) is a Y-shaped connector.
[0035] Please see the appendix Figure 4 , attached Figure 4 Two structural forms of connectors with four connection points are listed, where (f) is a cross-shaped connector and (g) is a Y-shaped connector.
[0036] Step 2: Locate the split point S of the connector and split the connector at the split point S.
[0037] Step 2, the step of finding the split point, includes:
[0038] Step 2.1: Locate all valid connection points C of the connectors using the connector's API (Application Programming Interface).
[0039] For example, a connector with 2 connection points has 2 valid connection points C, which can be denoted as C1 and C2 respectively; a connector with 3 connection points has 3 valid connection points C, which can be denoted as C1, C2 and C3 respectively; a connector with 4 connection points has 4 valid connection points C, which can be denoted as C1, C2, C3 and C4 respectively.
[0040] Step 2.2: Find the connection direction BasisZ for each connection point C, as shown in the attached diagram. Figure 2 To be continued Figure 4 The direction indicated by the middle arrow.
[0041] Step 2.3: Starting from one of the connection points C of the connector, construct a straight line with the connection direction BasisZ of that connection point as the direction.
[0042] The number of connection points of each connector determines the number of straight lines that can be constructed. For example, a connector with 2 connection points has 2 straight lines, which can be labeled line1 and line2 respectively; a connector with 3 connection points has 3 straight lines, which can be labeled line1, line2, and line3 respectively; and a connector with 4 connection points has 4 straight lines, which can be labeled line1, line2, line3, and line4 respectively.
[0043] Step 2.4: When there are 2 connection points C, first determine whether the two lines are parallel. If they are, take the midpoint of the two connection points C, namely connection point C1 and connection point C2, as the split point S. If not, calculate the nearest point of each line to the other and take the midpoint of the two nearest points as the split point S.
[0044] When the number of connection points C is 3, first find two parallel straight lines, and construct a new straight line newline from the starting point of these two straight lines, i.e., connection point C. Then find the intersection point of the new straight line newline and the third straight line, and take this intersection point as the split point S.
[0045] When the number of connection points C is 4, first find two parallel straight lines, and construct a new straight line newline1 using the starting point of these two lines, i.e., connection point C. If the other two lines are parallel to each other, construct a second new straight line newline2 using the starting point of these two lines, i.e., connection point C. Take the intersection of the first new straight line newline1 and the second new straight line newline2 as the split point S. If the other two lines are not parallel, find the intersection of the first new straight line newline1 with the third and fourth straight lines (the third and fourth straight lines are usually symmetrically distributed, so their intersection with the first new straight line newline1 is the same point), and take this intersection point as the split point S.
[0046] Step 3: Using the split point S, split the connector into multiple pipelines and calculate its key engineering parameter: length.
[0047] Specifically, the distance between each connection point C and the split point S of the connector is calculated, which is the length parameter of the pipeline after splitting.
[0048] Step 4: Using the Shape parameter and Width, Height or Radius parameter of each connection point C, obtain the shape and size information of the split pipeline.
[0049] The Shape parameter and Width, Height or Radius parameter of connection point C can be obtained directly from Revit software, and will not be elaborated here.
[0050] Step 5: For pipeline quantity increase parameters that are not present in the connectors but are required, they can be obtained by searching for the parameter information of the pipeline connected to connection point C; if there is no connected pipeline at connection point C, the information can be obtained by searching for the pipelines connected to other connection points C; if there is no connected pipeline at any connection point C, the required pipeline quantity increase parameters are assigned the value "unknown" to achieve logical completeness (this case is due to a model drawing error).
[0051] Step 6: Decompose and convert all connectors into pipeline information to obtain the key engineering quantity parameters of connectors in all pipelines.
[0052] The above are merely preferred embodiments of the present invention and are not intended to limit the scope of protection of the invention. Therefore, any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A Revit-based mechanical and electrical connection engineering quantity key parameter extraction method, characterized by: It comprises the following steps: Step 1: determining all connector forms of air pipes, water pipes and bridge pipes in Revit software by an exhaustive method; Step 2: finding a split point S of the connector and splitting the connector at the split point S; In step 2, the step of finding the split point comprises: Step 2.1: finding all valid connection points C of the connector through an API of the connector; Step 2.2: finding a connection direction BasisZ of each connection point C; Step 2.3: taking one connection point C of the connector as a starting point and constructing a straight line line in the connection direction BasisZ of the connection point C; Step 2.4: when the number of connection points C is 2, first judging whether the two straight lines line are parallel lines, if yes, taking the midpoint of the two connection points C as the split point S; if not, respectively calculating the nearest points of the two lines to each other, and taking the midpoint of the two nearest points as the split point S; when the number of connection points C is 3, first finding two parallel straight lines line, taking the starting points of the two straight lines line, i.e. the connection points C, to construct a new straight line newline, and then finding the intersection point of the new straight line newline and the third straight line line, taking the intersection point as the split point S; when the number of connection points C is 4, first finding two parallel straight lines line, taking the starting points of the two straight lines line, i.e. the connection points C, to construct a first new straight line newline1; if the other two straight lines are parallel to each other, taking the starting points of the two straight lines line, i.e. the connection points C, to construct a second new straight line newline2, and taking the intersection point of the first new straight line newline1 and the second new straight line newline2 as the split point S; if the other two straight lines are not parallel, finding the intersection points of the first new straight line newline1 and the third straight line line and the fourth straight line line, and taking the intersection points as the split point S; Step 3: splitting the connector into multiple pipelines by means of the split point S and calculating the key parameters: length; Step 4: obtaining the shape and size information of the split pipeline by means of the Shape parameter and the Width, Height or Radius parameter of each connection point C; Step 5: for the pipeline parameter information that is not in the connector but is needed, the parameter information is obtained by searching the parameter information of the pipeline connected with the connection point C; if the connection point C has no connected pipeline, the information is obtained by searching the pipeline connected with other connection points C; if all the connection points C have no connected pipeline, the required pipeline parameter information is assigned as "unknown" to realize logical integrity; Step 6: splitting and converting all connectors into pipeline information to obtain the key pipeline parameter information of the connectors.
2. The Revit-based MEP connection engineering quantity key parameter extraction method according to claim 1, characterized in that: The connecting piece in step 1 includes a connecting piece with two connecting points, a connecting piece with three connecting points and a connecting piece with four connecting points; wherein the connecting piece with two connecting points includes a connecting piece in vertical form, a connecting piece in angle form and a connecting piece in parallel form, the connecting piece with three connecting points includes a T-shaped connecting piece and a Y-shaped connecting piece, and the connecting piece with four connecting points includes a cross-shaped connecting piece and a Y-shaped connecting piece.
3. The Revit-based MEP connection engineering quantity key parameter extraction method according to claim 1, characterized in that: In step 3, the distance between each connecting point C of the connecting piece and the split point S is calculated, that is, the length parameter of the split pipeline.
Citation Information
Patent Citations
Electromechanical model splitting method based on Revit and Dynamo
CN115392180A
Pipeline accurate quantity calculation method based on Revit parameterized connecting pipe fitting
CN118194475A