Mechanical and electrical engineering quantity calculation method and system
By combining modular modeling and reverse projection technology, accurate calculation of electromechanical engineering quantities is achieved, solving the problems of low data acquisition efficiency and inaccurate calculation in traditional methods, and supporting real-time data updates and multi-disciplinary collaboration.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING URBAN CONSTR GROUP
- Filing Date
- 2025-07-15
- Publication Date
- 2026-07-03
Smart Images

Figure CN120995658B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of artificial intelligence technology, and in particular to a method and system for calculating quantities in electromechanical engineering. Background Technology
[0002] In the full life-cycle management of construction projects, the calculation of mechanical and electrical engineering quantities is a core link in project cost control and construction organization. Its accuracy directly affects project cost budgeting, material procurement plans, and construction schedules. Traditional mechanical and electrical quantity calculation work relies heavily on manual drawing interpretation and experience-based judgment. When dealing with complex pipeline systems involving multiple disciplines such as electrical, water supply and drainage, and HVAC, it suffers from inherent pain points such as low data collection efficiency, lagging version iterations, and difficulties in professional collaboration. Especially in large-scale projects, due to frequent changes in mechanical and electrical equipment parameters and dynamic adjustments to the integrated pipeline layout, it is difficult for all parties involved to obtain unified engineering information data in real time, leading to frequent quantity calculation errors and construction rework.
[0003] At the same time, existing building information modeling software has significant functional defects in the statistics of electromechanical engineering quantities: on the one hand, the software is difficult to freely divide the electromechanical model according to the boundary of the construction flow section, resulting in the inability to accurately divide the engineering quantity according to the construction area; on the other hand, the built-in quantity calculation formula is out of sync with the actual cost calculation algorithm, and the data needs to be exported to Excel for manual conversion, which cannot meet the needs of dynamic quantity calculation.
[0004] Therefore, there is an urgent need for a method that can achieve free partitioning and accurate quantity calculation of integrated electromechanical pipeline models. Summary of the Invention
[0005] In view of this, the present invention proposes a method and system for calculating the quantities of electromechanical engineering projects, which can realize the free division and accurate quantity calculation of the integrated model of electromechanical pipelines.
[0006] To achieve the above objectives, the present invention provides the following technical solution:
[0007] A method for calculating quantities in electromechanical engineering projects, comprising:
[0008] A modular combined modeling strategy was adopted to construct an integrated electromechanical pipeline model;
[0009] Based on the preset flow segment boundaries, segmentation marker parameters are embedded in the electromechanical pipeline integrated model. Based on the segmentation marker parameters, the electromechanical pipeline integrated model is freely divided to obtain several flow segment region models.
[0010] Obtain the cross-section pipelines that span multiple flow section area models, calculate the weight ratio of the cross-section pipelines in each flow section, and allocate the workload of the cross-section pipelines to the corresponding flow section area models based on the weight ratio.
[0011] The cutting boundary of the two-dimensional construction drawings is mapped to the three-dimensional space of the integrated electromechanical pipeline model using reverse projection technology, thereby establishing the dynamic projection coordinate system of the integrated electromechanical pipeline model.
[0012] The target pipeline is selected from the flow section area model based on the multi-level spatial filtering engine and the dynamic projection coordinate system.
[0013] The target pipeline is non-destructively segmented using a parametric cutting actuator to obtain multiple target pipeline segments.
[0014] The quantity calculation formula for electromechanical engineering is used to calculate the quantity of engineering work for the target pipeline corresponding to each flow section area model, so as to obtain the quantity information of each target pipeline segment.
[0015] Based on the above technical solution, the present invention can be further improved as follows:
[0016] Optionally, the modular combination modeling strategy for constructing the electromechanical pipeline integrated model includes:
[0017] Based on the professional fields, the electromechanical pipeline is divided into independent modules to build a comprehensive electromechanical pipeline model. The professional fields include electrical, water supply and drainage and heating and ventilation.
[0018] Main pipelines and branch pipelines are grouped separately to preserve the topological relationships between components in the electromechanical pipeline integrated model.
[0019] Optionally, the step of using reverse projection technology to map the cutting boundaries of the two-dimensional construction drawings into the three-dimensional space of the electromechanical pipeline integrated model includes:
[0020] Extract the clipping frame parameters from the 2D construction drawings;
[0021] Based on the clipping frame parameters, a parameter mapping is established between the two-dimensional construction drawings and the integrated electromechanical pipeline model, and the two-dimensional closed curve is expanded into a three-dimensional closed body along the view normal.
[0022] A system for calculating quantities in electromechanical engineering projects, comprising:
[0023] The model building module is used to construct an integrated electromechanical pipeline model using a modular combination modeling strategy.
[0024] The model segmentation module is used to embed segmentation marker parameters into the electromechanical pipeline integrated model based on the preset flow segment boundaries, and to freely segment the electromechanical pipeline integrated model based on the segmentation marker parameters to obtain several flow segment region models.
[0025] The pipeline splitting module is used to obtain cross-segment pipelines that span multiple flow segment area models, calculate the weight ratio of the cross-segment pipelines in each flow segment, and allocate the workload of the cross-segment pipelines to the corresponding flow segment area models based on the weight ratio.
[0026] The projection module is used to map the cutting boundaries of the two-dimensional construction drawings onto the three-dimensional space of the electromechanical pipeline integrated model using reverse projection technology, and to establish the dynamic projection coordinate system of the electromechanical pipeline integrated model.
[0027] The filtering module is used to filter out target pipelines from the flow section area model based on the multi-level spatial filtering engine and the dynamic projection coordinate system.
[0028] The segmentation module is used to perform non-destructive segmentation of the target pipeline based on a parameterized cutting actuator to obtain multiple target pipeline segments;
[0029] The engineering quantity calculation module is used to calculate the engineering quantity of the target pipeline corresponding to each of the flow section area models using the electromechanical engineering quantity calculation formula, so as to obtain the engineering quantity information of each target pipeline segment.
[0030] Optionally, the model building module is further configured to:
[0031] Based on the professional fields, the electromechanical pipeline is divided into independent modules to build a comprehensive electromechanical pipeline model. The professional fields include electrical, water supply and drainage and heating and ventilation.
[0032] Main pipelines and branch pipelines are grouped separately to preserve the topological relationships between components in the electromechanical pipeline integrated model.
[0033] Optionally, the projection module is further configured to:
[0034] Extract the clipping frame parameters from the 2D construction drawings;
[0035] Based on the clipping frame parameters, a parameter mapping is established between the two-dimensional construction drawings and the integrated electromechanical pipeline model, and the two-dimensional closed curve is expanded into a three-dimensional closed body along the view normal.
[0036] An electronic device includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program to implement the steps of the method described herein.
[0037] A non-transitory computer-readable storage medium having a computer program stored thereon, the computer program implementing the steps of the method when executed by a processor.
[0038] The present invention has the following advantages:
[0039] The electromechanical engineering quantity calculation method in this invention employs a modular combined modeling strategy to construct a comprehensive electromechanical pipeline model. Based on preset flow segment boundaries, segmentation marker parameters are embedded to achieve free model segmentation. For cross-segment pipelines, workload is precisely allocated through weight ratios. Inverse projection technology is used to map the trimming boundaries of the two-dimensional construction drawings into the three-dimensional space of the comprehensive electromechanical pipeline model. Combined with spatial filtering to screen target pipelines, and after non-destructive segmentation, the quantity calculation formula for each flow segment is used, consistent with the actual cost estimation algorithm, to calculate the quantity of target pipelines in each flow segment, ensuring accurate and reliable calculation results. Attached Figure Description
[0040] For illustrative and not limiting purposes, the present invention will now be described in conjunction with embodiments and accompanying drawings, wherein:
[0041] Figure 1 This is a flowchart illustrating the electromechanical engineering quantity calculation method according to an embodiment of the present invention;
[0042] Figure 2 This is a schematic diagram of the main components of the electromechanical engineering quantity calculation system in an embodiment of the present invention;
[0043] Figure 3 This is a schematic diagram of the physical structure of the electronic device provided by the present invention. Detailed Implementation
[0044] To enable those skilled in the art to better understand the present invention, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0045] It should be noted that the terms "first," "second," etc., in the specification and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be used interchangeably where appropriate for the embodiments of the invention described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0046] It should be noted that, where there is no conflict, the embodiments and features of the present invention can be combined with each other. The embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0047] Figure 1 This is a flowchart illustrating the electromechanical engineering quantity calculation method according to an embodiment of the present invention, as shown below. Figure 1 As shown, the electromechanical engineering quantity calculation method provided in this embodiment of the invention includes the following steps S101 to S107.
[0048] S101 uses a modular combination modeling strategy to construct an integrated electromechanical pipeline model.
[0049] Based on the professional division of modeling units, the electromechanical pipelines are separated into independent modules for modeling according to professional types such as electrical, water supply and drainage, and HVAC. During the modeling process, the attribute information such as material, diameter, length, and connection method of the pipelines are entered simultaneously.
[0050] Main pipelines (such as water supply and drainage pipes above DN50 and air ducts in public areas) and branch pipelines (such as branch pipes below DN50 and air ducts at the end of rooms) are grouped separately to preserve the topological relationships between the components in the integrated electromechanical pipeline model.
[0051] After constructing the integrated model of electromechanical pipelines using a modular combination modeling strategy, the following steps are included:
[0052] Based on pipeline avoidance principles and collision detection tools, the pipelines in the electromechanical pipeline integrated model are arranged with zero collisions to eliminate pipeline intersection collisions.
[0053] The pipeline avoidance principle is that unpressurized pipes take priority over pressurized pipes, small pipes avoid large pipes, and pipelines with fewer accessories avoid pipelines with more accessories. Zero-collision layout is achieved through BIM collision detection tools.
[0054] Adjust the elevation of pipelines in the integrated electromechanical pipeline model based on the structural beam height and maintenance requirements to ensure that the clearance in key areas (such as banquet halls and equipment rooms) meets the standards and that the model is highly consistent with the actual project.
[0055] S102, based on the preset flow segment boundary, embed segment marker parameters into the electromechanical pipeline integrated model, and freely divide the electromechanical pipeline integrated model based on the segment marker parameters to obtain several flow segment region models.
[0056] Determine the boundaries of the construction flow sections based on the construction plan (such as the tower crane coverage area and material transportation route as defined in the construction plan), add segmentation marker parameters to clarify the flow section to which the component belongs, and use the BIM parametric capabilities to automatically divide the model, splitting the overall model into multiple independent areas to facilitate the statistical analysis of engineering quantities and construction management by area.
[0057] S103: Obtain the cross-section pipelines that span multiple flow section area models, calculate the weight ratio of the cross-section pipelines in each flow section, and allocate the workload of the cross-section pipelines to the corresponding flow section area models based on the weight ratio.
[0058] Identify cross-section pipelines that run through multiple areas (such as main air ducts that run through floors), embed virtual segmentation markers to mark the start and end positions, calculate the weight ratio of each flow segment based on factors such as length ratio, pipe diameter, and construction difficulty, and proportionally divide the workload of cross-section pipelines to the corresponding areas to ensure accurate statistics of the workload of each flow segment.
[0059] S104 uses reverse projection technology to map the cutting boundaries of the two-dimensional construction drawings into the three-dimensional space of the electromechanical pipeline integrated model, and establishes the dynamic projection coordinate system of the electromechanical pipeline integrated model.
[0060] Extract the clipping frame parameters from the 2D construction drawings;
[0061] Based on the clipping frame parameters, a parameter mapping is established between the two-dimensional construction drawings and the integrated electromechanical pipeline model, and the two-dimensional closed curve is expanded into a three-dimensional closed body along the view normal.
[0062] A vector offset algorithm is used to generate extended boundaries with tolerance coefficients to eliminate cutting blind spots caused by projection errors.
[0063] The system obtains the cutting frame information of the two-dimensional construction drawings, analyzes the relevant parameters to construct the projection matrix, extends the two-dimensional cutting boundary to three-dimensional space to form a closed body, and optimizes the boundary to eliminate errors, providing a spatial positioning benchmark for screening target pipelines.
[0064] S105 uses a multi-level spatial filtering engine and a dynamic projection coordinate system to filter out target pipelines from the flow section area model.
[0065] The bounding box tool is used to perform spatial collision detection on the flow section region model to obtain candidate pipelines;
[0066] Calculate the distance between the intersection points of the candidate pipeline centerline and the projected object;
[0067] The system automatically filters out short-distance cutting points with an intersection spacing less than the cutting length threshold (δ≥2D, where D is the pipe diameter) to obtain the target pipeline.
[0068] The "coarse screening-fine screening" mechanism is adopted. First, the range is narrowed down through spatial collision detection. Then, the coordinates of the intersection point between the pipeline and the projection body are accurately calculated. At the same time, a minimum cutting length threshold is set to ensure that target pipelines that meet the requirements and comply with engineering specifications are selected.
[0069] S106, based on the parametric cutting actuator, the target pipeline is non-destructively segmented to obtain multiple target pipeline segments.
[0070] Call the corresponding cutting rules according to the target pipeline parameters, adopt the non-destructive segmentation technology, consider the pipeline connection relationship and construction technology, compensate the obliquely cut pipeline and add connection components to ensure the integrity of the model and the feasibility of construction.
[0071] Perform oblique cutting and flange compensation on the target pipeline through a three-dimensional cutting compensation algorithm, accurately restore the construction technology and dimensional details, ensure the integrity of the model and the accuracy of quantity calculation, and support multi-disciplinary collaboration and cost control.
[0072] After the step of non-destructively segmenting the target pipeline based on the parametric cutting actuator, it includes:
[0073] Perform oblique cutting compensation and flange compensation on the target pipeline by using a three-dimensional cutting compensation algorithm.
[0074] Oblique cutting compensation: When the pipeline intersects the projection body non-orthogonally, it is necessary to dynamically generate the normal vector of the cutting plane that conforms to the construction specifications through a three-dimensional geometric vector algorithm. First, extract the pipeline direction vector, obtain the tangent vector (pipeline axial direction) of the pipeline centerline at the cutting point through Curve.TangentAtParameter, and use Curve.ComputeDerivatives to obtain the coordinate system at the midpoint position of the oblique pipe section, and extract the BasisX (axial) and BasisY (radial) vectors. After extracting the pipeline direction vector, it is necessary to calculate the normal vector of the projection body. If the projection body is a plane (such as a vertical floor slab), directly obtain the normal vector of the projection plane through PlanarFace.ComputeNormal. If the projection body is a curved surface, calculate the UV parameters at the cutting point through Surface.Evaluate, and then call Surface.ComputeNormal to generate a dynamic normal vector. Finally, according to the pipeline axial vector (Vpipe) and the projection body normal vector (Vnormal), generate the reference normal vector of the cutting plane through cross product operation: Vcut = Vpipe × Vnormal, and normalize the result: Vcut.Normalize. When Vpipe.DotProduct(Vnormal) < cos(θ) (θ is the maximum allowable deflection angle in the construction specifications, usually 30°), trigger the oblique cut compensation to generate an oblique cut that conforms to the construction specifications. The oblique cut that conforms to the construction specifications needs to meet the following conditions, and the system realizes automatic judgment through a multi-dimensional verification algorithm:
[0075]
[0076] The implementation logic is as follows: calculate the actual angle between the pipeline axis and the normal vector of the projection plane using AngleTo; dynamically call the angle-pipe diameter matching table in the construction specification database to generate the allowable cutting surface inclination range; when the pipeline material is detected to be a brittle material (such as cast iron), automatically increase the cut length compensation coefficient to 2D.
[0077] Flange Compensation: Automatically inserts a Flange family instance based on the pipeline type to compensate for connection length loss caused by cutting. The flange compensation function is implemented through a parametric family instantiation engine. First, it uses a parameterized flange family driver with a predefined flange family type library, including standard types such as Flange_ANSI and Flange_DIN. Then, it employs a spatial positioning algorithm to calculate the flange mounting plane at the cutting point, adjusting the flange direction to align with the normal vector of the cutting surface. Finally, it uses system parameter inheritance to automatically inherit the original pipeline attributes.
[0078] S107, the electromechanical engineering quantity calculation formula is used to calculate the engineering quantity of the target pipeline corresponding to each flow section area model, so as to obtain the engineering quantity information of each target pipeline section.
[0079] It has built-in quantity calculation formulas that are consistent with the actual cost calculation algorithm, automatically matches formulas for different types of pipelines, and calculates quickly and accurately by combining model parameters. It also corrects the results by taking into account factors such as construction losses, so that the quantity information truly reflects the construction needs.
[0080] HVAC: Duct unfolded area = π × (duct diameter + insulation layer thickness) × length;
[0081] Water supply and drainage: Pipe fitting count = number of tees / elbows × 1.05 (including 5% loss);
[0082] Electrical: Cable allowance length = half perimeter of distribution box + 2m (terminal box).
[0083] The modular combination modeling strategy for constructing the electromechanical pipeline integrated model also includes:
[0084] The project quantity information is displayed using a dynamic data dashboard.
[0085] The system pushes calculation results to the dashboard in real time, integrates functions such as 3D view linkage, real-time color rendering, box selection statistics, and version comparison, and realizes the visualization of engineering quantities, providing intuitive and accurate data support for project cost control and construction schedule adjustment.
[0086] The DockablePane interface, based on the Revit API, allows users to create dockable panels that can be freely dragged to the four edges of the Revit interface (such as the sidebar of the Properties panel), achieving seamless integration with the native Revit UI.
[0087] The panel content is built using the WPF framework, and the interaction between WinForm and Revit window is implemented through System.Windows.Interop, ensuring that the data refresh rate is synchronized with the Revit view (refresh delay ≤ 1 second).
[0088] A new "Quantity Calculation Kanban" tab has been added to the Revit Ribbon interface, integrating buttons such as "Flow Section Filter" and "Specialty Switch". The button icons adopt the standard Revit size (32×32 pixels) and are bound to command classes through PushButtonData.
[0089] Develop a context menu that supports the "Locate to Kanban" function when right-clicking a pipeline model, enabling two-way interaction between the model and the Kanban board.
[0090] Call the ViewActivated event to listen for the currently active view. When the user switches to the 3D view, automatically synchronize the professional filtering status in the dashboard (e.g., only display HVAC pipelines).
[0091] Develop a view synchronization module to achieve synchronization of the Kanban view with the spherical coordinate system of the Revit active view using View3D.SetOrientation() (pitch / yaw angle error ≤ 0.5°).
[0092] Real-time shading rendering:
[0093] Implement pipeline quantity status coloring using the OverrideGraphicSettings interface:
[0094] Areas exceeding the planned quantity (>5% of the planned quantity) are displayed as a red gradient;
[0095] Areas meeting the standard (within ±5%) are displayed in green;
[0096] The lagging area (<5%) is shown in yellow.
[0097] Materials are dynamically generated using the Color and FillPatternElement interfaces, avoiding reliance on external texture resources.
[0098] Model change capture:
[0099] (1) Register the DocumentChanged event. When the Revit model is modified, quickly locate the affected flow section through ElementIdSet and trigger a local quantity calculation update (response time ≤ 3 seconds).
[0100] (2) The incremental update algorithm is adopted, which only recalculates the changed pipelines and their upstream and downstream connecting components (such as valves and flanges), and the calculation efficiency is 8 times higher than that of the full model refresh.
[0101] Version comparison function:
[0102] (1) Integrate the ModelCompare function to generate a version difference matrix in the panel:
[0103] Pipelines with changed diameters are highlighted in red.
[0104] The blue dashed boxes indicate newly added / deleted components;
[0105] (2) Mark the design change area in the 3D view through RevisionCloud, and support clicking to jump to the corresponding version.
[0106] Selection statistics function:
[0107] (1) Develop a BoxPickFilter selector so that after the user selects a specific area, the panel automatically displays the various specialties within that area:
[0108] Pipeline length in meters (statistics categorized by pipe diameter);
[0109] Quantity of pipe fittings (including tees and elbows);
[0110] Insulation volume (automatically calculated based on material density).
[0111] Real-time alerts:
[0112] When the deviation of the work volume of a certain section exceeds the threshold, a breathing light effect (RGB(255,0,0) pulse flashing) is triggered at the edge of the panel, and a positioning suggestion pops up through TaskDialog.
[0113] The electromechanical engineering quantity calculation method further includes: acquiring actual data from the construction site, determining the pipelines to be calculated based on the actual data from the construction site, triggering a local quantity update process using an incremental update algorithm, and calculating the quantity of the pipelines to be calculated using an electromechanical engineering quantity calculation formula to obtain the quantity information of each pipeline to be calculated.
[0114] The method for calculating the quantities of electromechanical engineering works also includes:
[0115] Generate a cutting operation report, recording the ID of the pipeline being cut, the cutting coordinates, and the modification timestamp.
[0116] Blockchain technology is used to record the hash value of the computational version for each model modification, supporting the backtracking of engineering quantity data at any stage along the timeline, ensuring audit traceability.
[0117] By pushing the bill of quantities to the ERP system via OpenAPI, the automatic generation of material purchase orders is driven, reducing errors caused by manual intervention.
[0118] Figure 2 This is a schematic diagram of the main components of the electromechanical engineering quantity calculation system according to an embodiment of the present invention. Figure 2 As shown, the electromechanical engineering quantity calculation system 1 provided in this embodiment of the invention includes a model building module 10, a model segmentation module 20, a pipeline splitting module 30, a projection module 40, a filtering module 50, a segmentation module 60, and a quantity calculation module 70.
[0119] Model building module 10 is used to build an integrated electromechanical pipeline model using a modular combination modeling strategy;
[0120] The model segmentation module 20 is used to embed segmentation marker parameters into the electromechanical pipeline integrated model based on the preset flow segment boundaries, and to freely segment the electromechanical pipeline integrated model based on the segmentation marker parameters to obtain several flow segment region models.
[0121] The pipeline splitting module 30 is used to obtain cross-segment pipelines that span multiple flow segment area models, calculate the weight ratio of the cross-segment pipelines in each flow segment, and allocate the workload of the cross-segment pipelines to the corresponding flow segment area models based on the weight ratio.
[0122] Projection module 40 is used to map the cutting boundary of the two-dimensional construction drawings onto the three-dimensional space of the electromechanical pipeline integrated model using reverse projection technology, and to establish the dynamic projection coordinate system of the electromechanical pipeline integrated model.
[0123] The filtering module 50 is used to filter out target pipelines from the flow section area model based on the multi-level spatial filtering engine and the dynamic projection coordinate system.
[0124] The segmentation module 60 is used to perform non-destructive segmentation of the target pipeline based on a parametric cutting actuator to obtain multiple target pipeline segments;
[0125] The engineering quantity calculation module 70 is used to calculate the engineering quantity of the target pipeline corresponding to each of the flow section area models using the electromechanical engineering quantity calculation formula, so as to obtain the engineering quantity information of each target pipeline segment.
[0126] Figure 3 This is a schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, such as... Figure 3 As shown, the electronic device 80 includes: a processor 801, a memory 802, and a bus 803;
[0127] The processor 801 and the memory 802 communicate with each other via the bus 803.
[0128] The processor 801 is used to call program instructions in the memory 802 to execute the methods provided in the above-described method embodiments, and to execute the methods provided in the embodiments of the present invention.
[0129] This embodiment provides a non-transitory computer-readable storage medium that stores computer instructions, which cause a computer to execute the method provided in this embodiment of the invention.
[0130] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various storage media capable of storing program code, such as ROM, RAM, magnetic disk, or optical disk.
[0131] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for calculating quantities in electromechanical engineering, characterized in that, include: A modular combined modeling strategy was adopted to construct an integrated electromechanical pipeline model; Based on the preset flow segment boundaries, segmentation marker parameters are embedded in the electromechanical pipeline integrated model. Based on the segmentation marker parameters, the electromechanical pipeline integrated model is freely divided to obtain several flow segment region models. Obtain the cross-section pipelines that span multiple flow section area models, calculate the weight ratio of the cross-section pipelines in each flow section, and allocate the workload of the cross-section pipelines to the corresponding flow section area models based on the weight ratio. The cutting boundary of the two-dimensional construction drawings is mapped to the three-dimensional space of the integrated electromechanical pipeline model using reverse projection technology, thereby establishing the dynamic projection coordinate system of the integrated electromechanical pipeline model. The process of using reverse projection technology to map the cutting boundaries of the two-dimensional construction drawings into the three-dimensional space of the integrated electromechanical pipeline model includes: Extract the clipping frame parameters from the 2D construction drawings; Based on the clipping frame parameters, establish a parameter mapping between the two-dimensional construction drawing and the integrated model of electromechanical pipelines, and expand the two-dimensional clipping boundary into a projection volume along the view normal; Target pipelines are selected from the flow section region model based on a multi-level spatial filtering engine and the dynamic projection coordinate system, including: The bounding box tool is used to perform spatial collision detection on the water flow section region model to obtain candidate pipelines; Calculate the distance between the intersection points of the candidate pipeline centerline and the projected object; The system automatically filters out short-distance cutting points whose intersection spacing is less than the cutting length threshold in order to obtain the target pipeline. The target pipeline is non-destructively segmented using a parametric cutting actuator to obtain multiple target pipeline segments. The quantity calculation formula for electromechanical engineering is used to calculate the quantity of engineering work for the target pipeline corresponding to each flow section area model, so as to obtain the quantity information of each target pipeline segment.
2. The method for calculating the quantity of electromechanical engineering work according to claim 1, characterized in that, The modular combination modeling strategy for constructing the electromechanical pipeline integrated model includes: Based on the professional fields, the electromechanical pipeline is divided into independent modules to build a comprehensive electromechanical pipeline model. The professional fields include electrical, water supply and drainage and heating and ventilation. Main pipelines and branch pipelines are grouped separately to preserve the topological relationships between components in the electromechanical pipeline integrated model.
3. The method for calculating the quantities of electromechanical engineering work according to claim 1, characterized in that, After the non-destructive segmentation step of the target pipeline based on the parametric cutting actuator, the following steps are included: A three-dimensional cutting compensation algorithm is used to perform oblique cut compensation and flange compensation on the target pipeline.
4. A system for calculating quantities in electromechanical engineering projects, characterized in that, include: The model building module is used to construct an integrated electromechanical pipeline model using a modular combination modeling strategy. The model segmentation module is used to embed segmentation marker parameters into the electromechanical pipeline integrated model based on the preset flow segment boundaries, and to freely segment the electromechanical pipeline integrated model based on the segmentation marker parameters to obtain several flow segment region models. The pipeline splitting module is used to obtain cross-segment pipelines that span multiple flow segment area models, calculate the weight ratio of the cross-segment pipelines in each flow segment, and allocate the workload of the cross-segment pipelines to the corresponding flow segment area models based on the weight ratio. The projection module is used to map the cutting boundaries of the two-dimensional construction drawings onto the three-dimensional space of the electromechanical pipeline integrated model using reverse projection technology, and to establish the dynamic projection coordinate system of the electromechanical pipeline integrated model. The projection module is also used for: Extract the clipping frame parameters from the 2D construction drawings; Based on the clipping frame parameters, establish a parameter mapping between the two-dimensional construction drawing and the integrated model of electromechanical pipelines, and expand the two-dimensional clipping boundary into a projection volume along the view normal; The filtering module is used to filter out target pipelines from the flow section area model based on the multi-level spatial filtering engine and the dynamic projection coordinate system. The filtering module is also used for: The bounding box tool is used to perform spatial collision detection on the water flow section region model to obtain candidate pipelines; Calculate the distance between the intersection points of the candidate pipeline centerline and the projected object; The system automatically filters out short-distance cutting points whose intersection spacing is less than the cutting length threshold in order to obtain the target pipeline. The segmentation module is used to perform non-destructive segmentation of the target pipeline based on a parameterized cutting actuator to obtain multiple target pipeline segments; The quantity calculation module is used to calculate the quantity of the target pipeline corresponding to each of the flow section area models by using the electromechanical quantity calculation formula, so as to obtain the quantity information of each target pipeline segment.
5. The electromechanical engineering quantity calculation system according to claim 4, characterized in that, The model building module is also used for: Based on the professional fields, the electromechanical pipeline is divided into independent modules to build a comprehensive electromechanical pipeline model. The professional fields include electrical, water supply and drainage and heating and ventilation. Main pipelines and branch pipelines are grouped separately to preserve the topological relationships between components in the electromechanical pipeline integrated model.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 3.
7. A non-transitory computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 3.