Method and apparatus for calculating work quantity of piping and wiring of electrical system circuit
By using intelligent recognition technology and optimal path algorithm, the wiring and piping quantities of electrical system circuits are automatically calculated, solving the problems of low efficiency and poor accuracy in existing technologies, and realizing efficient and accurate calculation of wiring and piping quantities and data traceability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHENGDU PENGYE SOFTWARE
- Filing Date
- 2024-12-25
- Publication Date
- 2026-04-21
AI Technical Summary
The calculation of piping and wiring quantities for existing electrical system circuits is inefficient and inaccurate, and manual calculation is cumbersome and data checking and adjustment are difficult.
Intelligent recognition technology is used to extract loop parameters and calculation parameters from the system diagram, construct mapping relationships, automatically build a 3D model of the cable tray, determine the elements that need piping and do not need piping, and use the optimal path algorithm to calculate the piping and wiring work volume.
It enables automatic calculation of piping and wiring quantities, improves calculation efficiency and accuracy, solves the problem of cumbersome data checking and adjustment, and realizes intelligent data traceability.
Smart Images

Figure CN119848992B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electrical design technology, specifically to a method and apparatus for calculating the piping and wiring quantities of electrical system circuits. Background Technology
[0002] Electrical system circuit wiring refers to the installation of power supply and control lines from the distribution box to each electrical appliance. The quantity of wiring work includes calculations of materials, labor, and time required for the wiring and piping work of an electrical system circuit. Piping refers to the piping system in building construction, with common forms including cable trays. Wiring refers to the wiring system connecting wires, cables, and electrical equipment.
[0003] Currently, in electrical system circuits of building construction projects, the calculation of conduit and wiring quantities is typically done by cost estimators calculating the quantities for each circuit individually, primarily based on system diagrams and floor plans from CAD drawings. Specifically, cost estimators first determine the relationships between distribution boxes and the various parameters of the circuits belonging to each distribution box using the system diagram; then, they manually calculate the circuit conduit and wiring quantities based on the connection and location of conduits and cable trays in the floor plan. However, when the electrical design is complex and the system has numerous circuits, manual calculation methods suffer from low efficiency, low accuracy, and cumbersome data checking and adjustments. Summary of the Invention
[0004] This invention aims to solve the problems of low efficiency and accuracy in existing pipe and wiring engineering quantity calculation schemes, and proposes a method and device for calculating the pipe and wiring engineering quantity of electrical system circuits.
[0005] The technical solution adopted by the present invention to solve the above-mentioned technical problems is as follows:
[0006] In a first aspect, the present invention provides a method for calculating the piping and wiring quantities of an electrical system circuit, the method comprising:
[0007] Automatically extract the circuit parameters and calculation parameters corresponding to each circuit from the system diagram of the electrical system circuit. The circuit parameters include the starting distribution box number, the ending distribution box number and the circuit number. The calculation parameters include the circuit model and specifications and the circuit laying method.
[0008] Construct a mapping relationship, which includes a first mapping relationship between the loop parameters of each loop and the elements in the system diagram, and a second mapping relationship between the elements in the system diagram and the elements in the planar diagram of each loop;
[0009] Automatically extract cable tray data for each building floor from the floor plan, construct a 3D model of the cable trays based on the cable tray data, and determine the cable tray elements in the floor plan based on the 3D model of the cable trays.
[0010] Based on the starting distribution box number and the mapping relationship, the corresponding starting distribution box element is determined in the plan view. Based on the starting distribution box element, the pipeline elements corresponding to each circuit are automatically extracted from the plan view, and the extracted pipeline elements are marked as requiring piping.
[0011] In the plan view, the starting point of the cable tray for each circuit is determined according to the connection relationship between the pipeline elements and the cable tray elements of each circuit. The corresponding endpoint distribution box element is determined in the plan view according to the corresponding endpoint distribution box number and the mapping relationship. The endpoint of the cable tray for each circuit is determined according to the connection relationship between the endpoint distribution box element and the cable tray elements.
[0012] Based on the cable tray elements in the plan view and the optimal path algorithm, determine the optimal cable tray path between the cable tray start point and the cable tray end point of each loop, and determine the cable tray elements included in the optimal cable tray path. Mark the cable tray elements included in the optimal cable tray path as not requiring piping.
[0013] Based on the marked pipeline and cable tray elements for each circuit, and in conjunction with the corresponding calculation parameters, calculate the piping and wiring quantities for each circuit.
[0014] Furthermore, the method also includes:
[0015] After automatically extracting the loop parameters corresponding to each loop from the system diagram, the corresponding elements in the system diagram are labeled in situ. The in-situ labeling includes misalignment display and color difference display.
[0016] Furthermore, the method also includes:
[0017] The system monitors in real time whether the in-situ labels have been modified. If so, it updates the loop parameters and calculation parameters synchronously based on the modified data.
[0018] Furthermore, a 3D model of the bridge structure is constructed, including:
[0019] The horizontal cable tray data, grid data, and floor information of each building floor are automatically extracted from the plan view. The cable tray model of the corresponding building floor is constructed based on the horizontal cable tray data. The cable tray models of each building floor are vertically spliced together based on the floor information and grid data to obtain a complete 3D cable tray model.
[0020] Furthermore, the second mapping relationship between the elements in the system diagram and the elements in the corresponding loop's planar diagram is established through the coordinate positions of the elements.
[0021] Furthermore, based on the starting distribution box element, the corresponding pipeline elements for each circuit are automatically extracted from the plan view, including:
[0022] The system automatically extracts pipeline elements that are directly connected to the starting distribution box element from the plan view, and automatically extracts pipeline elements that are sequentially connected to each directly connected pipeline element. The pipeline elements are then grouped according to their connection relationship, and each pipeline element in a group is a pipeline element of a loop.
[0023] Furthermore, the method also includes:
[0024] After calculating the piping and wiring quantities for each circuit, the piping and wiring quantities are mapped to the circuit parameters and calculation parameters. When the circuit parameters or calculation parameters are modified, the corresponding piping and wiring quantities are recalculated.
[0025] In a second aspect, the present invention provides a device for calculating the piping and wiring quantities of an electrical system circuit, the device being used to implement the steps of the method for calculating the piping and wiring quantities of an electrical system circuit as described in the first aspect.
[0026] The beneficial effects of this invention are as follows: The method and apparatus for calculating the piping and wiring quantities of electrical system circuits provided by this invention first extracts the parameters of the electrical system circuits through intelligent recognition technology, constructs a mapping relationship between the elements of the system diagram and the plan view of each circuit, and determines the cable tray elements in the plan view based on the constructed 3D model of the cable tray. Then, for all circuits between each starting distribution box and the ending distribution box, it automatically determines the piping elements that require piping and the cable tray elements that do not require piping for each circuit and marks them accordingly. Finally, it automatically calculates the piping and wiring quantities of each circuit based on the marking results and the corresponding calculation parameters. This application realizes the automatic calculation of piping and wiring quantities, improves calculation efficiency and accuracy, and, through the constructed mapping relationship, enables intelligent data traceability, solving the problem of cumbersome data checking and adjustment. Attached Figure Description
[0027] Figure 1 This is a flowchart illustrating a method for calculating the piping and wiring quantities of an electrical system circuit, provided as an example. Detailed Implementation
[0028] To enable those skilled in the art to better understand the present invention, the technical solutions in this embodiment will be clearly and completely described below with reference to the accompanying drawings.
[0029] In some of the processes described in the specification and accompanying drawings of this invention, multiple operations are included that appear in a specific order. However, it should be clearly understood that these operations may not be executed in the order they appear herein, or may be executed in parallel. The sequence numbers of the operations are merely used to distinguish the different operations and do not themselves represent any execution order. Furthermore, these processes may include more or fewer operations, and these operations may be executed sequentially or in parallel.
[0030] Currently, the calculation of wiring and piping quantities for electrical system circuits is typically done manually. This involves cost estimators comparing system diagrams and floor plans in CAD drawings to manually determine the connections and locations of conduits and cable trays within the circuits. The inventors have found that this manual calculation method is inefficient, error-prone, and inaccurate.
[0031] Based on this, the technical solution of the present invention is proposed. In the present invention, the circuit parameters and calculation parameters corresponding to each circuit are automatically extracted from the system diagram of the electrical system circuit. The circuit parameters include the starting distribution box number, the ending distribution box number, and the circuit number. The calculation parameters include the circuit model and specifications and the circuit laying method. A mapping relationship is constructed, which includes a first mapping relationship between the circuit parameters of each circuit and the graphic elements in the system diagram, and a second mapping relationship between the graphic elements in the system diagram and the graphic elements in the plan view of each circuit. The cable tray data of each building floor is automatically extracted from the plan view. A three-dimensional model of the cable tray of the building is constructed based on the cable tray data. The cable tray graphic elements are determined in the plan view based on the three-dimensional model of the cable tray. The corresponding starting distribution box graphic element is determined in the plan view based on the starting distribution box number and the mapping relationship. The starting distribution box element is automatically extracted from the plan view to obtain the corresponding pipeline elements for each circuit, and the extracted pipeline elements are marked as requiring conduit. In the plan view, the cable tray starting point of each circuit is determined according to the connection relationship between the pipeline elements and cable tray elements. The corresponding ending distribution box element is determined in the plan view according to the corresponding ending distribution box number and the mapping relationship. The cable tray ending point of each circuit is determined according to the connection relationship between the ending distribution box element and cable tray elements. The optimal cable tray path between the cable tray starting point and the cable tray ending point of each circuit is determined based on the cable tray elements in the plan view and the optimal path algorithm. The cable tray elements included in the optimal cable tray path are determined and marked as not requiring conduit. The conduit and wiring work volume of each circuit is calculated based on the marked pipeline elements and cable tray elements of each circuit, combined with the corresponding calculation parameters.
[0032] Specifically, this invention first extracts the circuit parameters and calculation parameters of the electrical system circuits using intelligent recognition technology, constructs a mapping relationship between the system diagram and the graphic elements of each circuit's plan view, and determines the cable tray graphic elements in the plan view based on the constructed 3D model of the cable tray. Then, for all circuits between each starting and ending distribution box, it automatically determines the conduit graphic elements that require piping and the cable tray graphic elements that do not require piping for each circuit, and marks them accordingly. Finally, based on the marking results and the corresponding calculation parameters, it automatically calculates the piping and wiring quantities for each circuit. This invention achieves automatic calculation of piping and wiring quantities, improves calculation efficiency and accuracy, and, through the constructed mapping relationship, enables intelligent data traceability, solving the problem of cumbersome data checking and adjustment.
[0033] The technical solutions in this embodiment will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0034] Figure 1 A flowchart illustrating a method for calculating the piping and wiring quantities of an electrical system circuit is provided. Please refer to [link / reference]. Figure 1 The method includes the following steps:
[0035] S1. Automatically extract the circuit parameters and calculation parameters corresponding to each circuit from the system diagram of the electrical system circuits;
[0036] In this embodiment, the circuit parameters include the starting distribution box number, the ending distribution box number, and the circuit number, and the calculation parameters include the circuit model and specifications and the circuit laying method.
[0037] As can be understood, a system diagram of an electrical system circuit refers to a three-dimensional system diagram of the entire electrical system circuit in a CAD drawing. The system diagram is based on distribution boxes, with each distribution box corresponding to multiple circuits, and each circuit having corresponding circuit parameters and calculation parameters. In practical applications, AI intelligent recognition technology can be used to automatically extract the corresponding circuit parameters and calculation parameters for each circuit from the system diagram.
[0038] In this embodiment, after automatically extracting the loop parameters corresponding to each loop from the system diagram, the corresponding graphic elements in the system diagram are labeled in situ. The in-situ labeling includes misalignment display and color difference display. The system monitors in real time whether the in-situ labeling has been modified; if so, the loop parameters and calculation parameters are updated synchronously based on the modified data.
[0039] Specifically, the extracted loop parameters are directly annotated in their original positions on the system diagram of the CAD drawing using methods such as "misalignment display" and "color difference". Furthermore, these in-situ annotations can be modified, and the modified data will be automatically synchronized to the loop parameters and calculation parameters. This facilitates users in checking and adjusting the parameters of the electrical system loops, greatly solving the problems of tedious checks and difficult adjustments for users.
[0040] S2. Construct a mapping relationship, which includes a first mapping relationship between the loop parameters of each loop and the elements in the system diagram, and a second mapping relationship between the elements in the system diagram and the elements in the planar diagram of each loop.
[0041] After completing step S1, the loop parameters of each loop are mapped to the corresponding elements in the system diagram. By establishing the correspondence between loop parameters and element coordinates, the first mapping relationship is constructed. Then, for each loop parameter, the element coordinates in the system diagram and the element coordinates in the planar diagram are recorded, thereby constructing the second mapping relationship between the elements in the system diagram and the elements in the planar diagram of each loop. Data traceability operations in the system diagram and the planar diagram can be achieved through coordinate positioning.
[0042] S3. Automatically extract cable tray data for each building floor from the floor plan, construct a three-dimensional model of the cable trays based on the cable tray data, and determine the cable tray elements in the floor plan based on the three-dimensional model of the cable trays.
[0043] It's understandable that cable trays serve as carriers for wires and cables. When calculating the quantity of electrical circuit wiring and conduit work, they are used not only as a basis for the layout of electrical lines but also for the calculation of wire and cable conduits. The portion of the wiring that passes through the cable tray is laid within the tray, and no conduit is needed in this case. The portion of the wiring that does not pass through the cable tray requires conduit to protect the cables and prevent damage from external factors.
[0044] When wiring electrical circuits according to cable trays, some circuits need to cross different floors. When designers produce drawings, they often put the cable tray floor plans of different floors in one CAD drawing. Therefore, it is necessary to create a complete 3D model of the cable trays that includes all floors as the basis for the layout of electrical circuits.
[0045] In this embodiment, constructing a three-dimensional model of the cable trays of a building includes: automatically extracting horizontal cable tray data, grid data, and floor information for each building floor from the floor plan; constructing a cable tray model for the corresponding building floor based on the horizontal cable tray data; and vertically splicing the cable tray models of each building floor based on the floor information and grid data to obtain a complete three-dimensional model of the cable trays.
[0046] In practical applications, AI intelligent recognition technology is used to automatically extract graphic data such as horizontal cable trays, grid lines, floor information, and calculation parameters for each floor in the floor plan, forming cable tray models for each floor. Then, based on the "floor information" and "automatic grid splicing technology," the 3D models of cable trays on each floor are vertically spliced. Finally, through professional inspection and manual adjustment, a complete 3D model of the cable tray is obtained. After the 3D model of the cable tray is constructed, the graphic elements in the floor plan can be determined based on the 3D model of the cable tray.
[0047] S4. Based on the starting distribution box number and the mapping relationship, determine the corresponding starting distribution box element in the plan view, automatically extract the pipeline elements corresponding to each circuit from the plan view based on the starting distribution box element, and mark the extracted pipeline elements as requiring piping.
[0048] Among them, the pipeline elements corresponding to each circuit are automatically extracted from the plan view based on the starting distribution box elements, including:
[0049] The system automatically extracts pipeline elements that are directly connected to the starting distribution box element from the plan view, and automatically extracts pipeline elements that are sequentially connected to each directly connected pipeline element. The pipeline elements are then grouped according to their connection relationship, and each pipeline element in a group is a pipeline element of a loop.
[0050] This step is understood to be used to determine the wiring that requires conduit installation in the floor plan. After completing steps S1 to S3, the conditions for automatically calculating the electrical circuit conduit wiring quantities are met. Specifically, for each starting distribution box, the corresponding starting distribution box element is first located in the floor plan according to the mapping relationship in step S2. Using AI intelligent recognition technology, the conduit elements directly connected to the starting distribution box element are automatically extracted. Based on these conduit elements, all connected conduit elements are extracted and grouped according to their connection relationships. A group of conduit elements represents all the conduit elements for a circuit. Then, the circuit number of the circuit to which the distribution box belongs is matched to determine the correspondence between the group and the circuit number. Finally, the data markings for conduit elements in these groups that require conduit installation are indicated, thus determining which conduits need to be installed.
[0051] S5. In the plan view, determine the starting point of the cable tray for each circuit according to the connection relationship between the pipeline elements and the cable tray elements of each circuit. Determine the corresponding endpoint distribution box element in the plan view according to the corresponding endpoint distribution box number and the mapping relationship. Determine the endpoint of the cable tray for each circuit according to the connection relationship between the endpoint distribution box element and the cable tray elements.
[0052] This step is understood to be used to determine the start and end points of cable trays that do not require conduit installation in the floor plan. Typically, wiring starts from the starting distribution box and does not pass through the cable tray in the first half; the corresponding conduit elements can be extracted from the floor plan. The latter half of the wiring passes through the cable tray and connects to the ending distribution box. Based on this, this embodiment determines the corresponding cable tray start point by the connection position between the extracted conduit elements and the cable tray elements, and determines the cable tray end point of the corresponding circuit by the connection position between the cable tray elements and the ending distribution box.
[0053] S6. Based on the cable tray elements in the plan view and the optimal path algorithm, determine the optimal cable tray path between the cable tray start point and the cable tray end point of each loop, and determine the cable tray elements included in the optimal cable tray path. Mark the cable tray elements included in the optimal cable tray path as not requiring piping.
[0054] This step is understood to be used to determine the optimal cable tray path between the start and end points of the cable tray in the plan view, thereby identifying the cable trays that do not require piping. Since there are many cable trays between the start and end points, this embodiment determines the optimal cable tray path between them based on the optimal path algorithm after determining the start and end points. All cable tray elements on the optimal path are the cable trays that do not require piping.
[0055] S7. Based on the marked pipeline and cable tray elements for each circuit, and in conjunction with the corresponding calculation parameters, calculate the piping and wiring quantities for each circuit.
[0056] For each circuit, the above steps automatically determine the pipeline elements that require piping and the cable tray elements that do not require piping in the plan view. Based on the calculation parameters of each circuit, namely the circuit model and specifications and the circuit laying method, and in conjunction with the relevant engineering quantity calculation specifications, the piping and wiring engineering quantity of each circuit can be calculated.
[0057] In this embodiment, after calculating the piping and wiring quantities for each circuit, a mapping relationship is established between these quantities and the circuit parameters and calculation parameters. When the circuit parameters or calculation parameters are modified, the corresponding piping and wiring quantities are recalculated. This facilitates subsequent data modification and synchronization operations for the user.
[0058] In summary, the method for calculating the conduit and wiring quantities of electrical system circuits provided in this embodiment first extracts the parameters of the electrical system circuits using intelligent recognition technology, constructs a mapping relationship between the elements of the system diagram and the plan view of each circuit, and determines the cable tray elements in the plan view based on the constructed 3D model of the cable tray. Then, for all circuits between each starting distribution box and the ending distribution box, it automatically determines the conduit elements that require conduit and the cable tray elements that do not require conduit for each circuit and marks them accordingly. Finally, it automatically calculates the conduit and wiring quantities of each circuit based on the marking results and the corresponding calculation parameters. This application realizes the automatic calculation of conduit and wiring quantities, improves calculation efficiency and accuracy, and enables intelligent data traceability through the constructed mapping relationship, solving the problem of cumbersome data checking and adjustment.
[0059] Based on the above technical solution, this embodiment also proposes a device for calculating the piping and wiring quantities of electrical system circuits. The device is used to implement the steps of the method for calculating the piping and wiring quantities of electrical system circuits as described in this embodiment.
[0060] It is understood that since the electrical system circuit piping and wiring engineering quantity calculation device described in this embodiment is a device for implementing the electrical system circuit piping and wiring engineering quantity calculation method described in the embodiment, the device disclosed in the embodiment is relatively simple to describe because it corresponds to the method disclosed in the embodiment. For relevant parts, please refer to the description of the method, and it will not be repeated here.
Claims
1. A method for calculating the piping and wiring quantities of an electrical system circuit, characterized in that, The method includes: Automatically extract the circuit parameters and calculation parameters corresponding to each circuit from the system diagram of the electrical system circuit. The circuit parameters include the starting distribution box number, the ending distribution box number and the circuit number. The calculation parameters include the circuit model and specifications and the circuit laying method. Construct a mapping relationship, which includes a first mapping relationship between the loop parameters of each loop and the elements in the system diagram, and a second mapping relationship between the elements in the system diagram and the elements in the planar diagram of each loop; Automatically extract cable tray data for each building floor from the floor plan, construct a 3D model of the cable trays based on the cable tray data, and determine the cable tray elements in the floor plan based on the 3D model of the cable trays. Based on the starting distribution box number and the mapping relationship, the corresponding starting distribution box element is determined in the plan view. Based on the starting distribution box element, the pipeline elements corresponding to each circuit are automatically extracted from the plan view, and the extracted pipeline elements are marked as requiring piping. In the plan view, the starting point of the cable tray for each circuit is determined according to the connection relationship between the pipeline elements and the cable tray elements of each circuit. The corresponding endpoint distribution box element is determined in the plan view according to the corresponding endpoint distribution box number and the mapping relationship. The endpoint of the cable tray for each circuit is determined according to the connection relationship between the endpoint distribution box element and the cable tray elements. Based on the cable tray elements in the plan view and the optimal path algorithm, determine the optimal cable tray path between the cable tray start point and the cable tray end point of each loop, and determine the cable tray elements included in the optimal cable tray path. Mark the cable tray elements included in the optimal cable tray path as not requiring piping. Based on the marked pipeline and cable tray elements for each circuit, and in conjunction with the corresponding calculation parameters, calculate the piping and wiring quantities for each circuit.
2. The method for calculating the piping and wiring quantities of electrical system circuits according to claim 1, characterized in that, The method further includes: After automatically extracting the loop parameters corresponding to each loop from the system diagram, the corresponding elements in the system diagram are labeled in situ. The in-situ labeling includes misalignment display and color difference display.
3. The method for calculating the piping and wiring quantities of electrical system circuits according to claim 2, characterized in that, The method further includes: The system monitors in real time whether the in-situ labels have been modified. If so, it updates the loop parameters and calculation parameters synchronously based on the modified data.
4. The method for calculating the piping and wiring quantities of electrical system circuits according to claim 1, characterized in that, Constructing a 3D model of the building's cable trays includes: The horizontal cable tray data, grid data, and floor information of each building floor are automatically extracted from the plan view. The cable tray model of the corresponding building floor is constructed based on the horizontal cable tray data. The cable tray models of each building floor are vertically spliced together based on the floor information and grid data to obtain a complete 3D cable tray model.
5. The method for calculating the piping and wiring quantities of electrical system circuits according to claim 1, characterized in that, The second mapping relationship between the elements in the system diagram and the elements in the corresponding loop planar diagram is established through the coordinate positions of the elements.
6. The method for calculating the piping and wiring quantities of electrical system circuits according to claim 1, characterized in that, Based on the starting point distribution box element, the corresponding pipeline elements for each circuit are automatically extracted from the plan view, including: The system automatically extracts pipeline elements that are directly connected to the starting distribution box element from the plan view, and automatically extracts pipeline elements that are sequentially connected to each directly connected pipeline element. The pipeline elements are then grouped according to their connection relationship, and each pipeline element in a group is a pipeline element of a loop.
7. The method for calculating the piping and wiring quantities of electrical system circuits according to claim 1, characterized in that, The method further includes: After calculating the piping and wiring quantities for each circuit, the piping and wiring quantities are mapped to the circuit parameters and calculation parameters. When the circuit parameters or calculation parameters are modified, the corresponding piping and wiring quantities are recalculated.
8. A device for calculating the piping and wiring quantities of an electrical system circuit, characterized in that, The device is used to implement the steps of the method for calculating the piping and wiring quantities of electrical system circuits as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Statistical checking system and method of transformer substation installation cable and ground connection engineering quantity
CN105574235A
A method and a system for accurate statistics of cable consumption information based on BIM technology
CN109284534A