Cable BIM (Building Information Modeling) generation system and generation method based on revit software
By introducing a cable BIM model generation system in the revit software, the problem of inaccurate volume increase caused by the cable not having loop characteristics and the inability to form the system diagram is solved, and the reasonable arrangement of the three-dimensional cable model and accurate engineering volume calculation are realized, and the two-dimensional power supply circuit diagram is automatically drawn.
Patent Information
- Application Number
- CN202510643472.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-19
- Publication Date
- 2025-08-15
AI Technical Summary
The existing revit software does not have loop characteristics in the three-dimensional cable model design, resulting in inaccurate cable volume increase, inability to form system diagrams, and inability to connect terminals.
It provides a cable BIM model generation system based on revit software, including automatic arrangement of cable modules, cable connection distribution box modules and system diagram modules. By calling the wire pipe module to configure cables, identifying the bridge path, automatically laying the cables and connecting the distribution box, and generating cable digital information with loop characteristics.
The reasonable arrangement of the three-dimensional cable model is achieved, ensuring the accuracy of the cable engineering quantity calculation, and automatically drawing a two-dimensional power supply circuit diagram with loop characteristics, improving the accuracy of the cable engineering quantity calculation and the ability to form the system diagram.
Smart Images

Figure CN120493456A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital generation of building electrical systems, and in particular to a cable BIM model generation system and generation method based on Revit software. Background Art
[0002] In the construction industry, BIM technology (Building Information Modeling) has been developed for many years. This technology uses software such as Revit (a type of BIM software) to create three-dimensional models of buildings, allowing designers, owners, and other project stakeholders to intuitively visualize the building's exterior and interior space layout. For example, when designing a complex commercial complex, a 3D model can clearly show details such as the mall's atrium, the location of each store, and traffic flow. This helps all parties better understand the design intent and identify design problems in advance, such as unreasonable space utilization and obstructed views.
[0003] Although Revit technology is relatively mature in the design of 3D building models, it is relatively simple in the design of 3D cable models and circuit loops.
[0004] The current BIM cabling technology in the industry relies on creating dedicated families and volumes. Using Dynamo to call dedicated families or volumes allows for simple cable quantity and layout. However, the biggest drawback of this technology is that the resulting cables lack "loop" characteristics, leading to inaccurate quantity calculations, the inability to create system diagrams, and the inability to connect terminals. Summary of the Invention
[0005] The present invention aims to provide a cable BIM model generation system based on Revit software to solve the problem that the existing architecture and tools of Revit software do not have the ability to generate cable digital information with loop characteristics. At the same time, it provides a cable BIM model generation method to realize cable digital information with loop characteristics based on Revit software.
[0006] In order to solve the above problems, the present invention provides a cable BIM model generation system based on Revit software, which is a cable plug-in installed in the first-level menu interface of Revit software, including an automatic cable arrangement module, a cable connection distribution box module and a system diagram creation module; the automatic cable arrangement module is used to call the wire pipe module in Revit software, configure cable parameters for the selected wire pipe, so that the selected wire pipe has cable characteristics, identify the bridge in the BIM three-dimensional drawing, select the bridge for laying cables, and automatically arrange the configured cables into the selected bridge; the cable connection distribution box module is used for connecting the cable and the distribution box in the BIM three-dimensional drawing to form a power supply circuit from the power supply end to the distribution box; the system diagram creation module is used to extract parameter information of the distribution box and the cable connected to the distribution box in the BIM three-dimensional drawing, and output a two-dimensional electrical schematic diagram matching the power supply circuit.
[0007] The automatic cable layout module, cable connection distribution box module and system diagram creation module are displayed as independent selectable controls in the secondary menu bar of the Revit software. Click to enter the corresponding module function.
[0008] Furthermore, the automatic cable layout module features a cable creation window, which includes a conduit selection interface and a cable configuration interface. The conduit selection interface displays a list of all available conduits, from which any conduit can be selected. The cable configuration interface displays the selected conduit and provides editing controls for configuring the conduit as a cable. This allows users to intuitively select the desired conduit type by moving the cursor.
[0009] Furthermore, the automatic cable layout module also includes a path selection interface for automatically obtaining the cable tray path required for laying cables in the BIM 3D diagram and displaying all available cable tray paths. Since there are multiple possible cable tray paths from the cable starting point to the end point in the BIM 3D diagram, in actual construction, the shortest path is not necessarily selected. Other paths may be selected based on the actual site conditions. Therefore, the path selection interface is provided here, allowing users to select the optimal cable tray path based on the actual construction situation.
[0010] Furthermore, the path selection interface is provided with a preview control. Clicking the preview control allows the selected bridge path to be viewed in the BIM 3D map. The path selection interface is also provided with a pipeline drawing control. Clicking the drawing control allows the bridge path to be drawn in the BIM 3D map.
[0011] Furthermore, the cable plug-in also includes a cable quantity table output control for collecting cable quantity data. Click the cable quantity table output control to collect the cable quantity data in the BIM three-dimensional drawing and form a standard cable quantity table output.
[0012] Furthermore, the system diagram creation module also includes an electrical schematic diagram output interface, which is used to collect electrical information of all power supply circuits in the BIM three-dimensional diagram, automatically generate a two-dimensional electrical schematic diagram, and provide a download interface.
[0013] The present invention also provides a cable BIM model generation method based on Revit software, which includes the following steps:
[0014] Step 1: Click the cable plug-in to enter the secondary menu bar, then click the automatic cable layout module, execute the call wire tube module command, and provide the custom selected wire tube model and size parameters;
[0015] Step 2: Configure the selected conduit as cable parameters, including cable diameter, cable specifications, and cable material;
[0016] Step 3: Select the bridge part in the BIM 3D diagram, and display multiple alternative bridge paths in the path selection interface based on the starting and ending points of the cable laying;
[0017] Step 4: Select the bridge path where the cable is to be laid, and click the confirmation button of the automatic cable layout module to automatically lay the cable in the bridge path;
[0018] Step 5: Click the Cable Connection Distribution Box module, select the cables and distribution boxes to be connected in turn, and the Cable Connection Distribution Box module automatically connects the cables and distribution boxes in the BIM 3D drawing.
[0019] Preferably, it also includes the step of generating a two-dimensional electrical schematic diagram, specifically: first click the Create System Diagram module, collect the electrical information of all power supply circuits in the BIM three-dimensional diagram, and generate a two-dimensional electrical schematic diagram according to the general legend rules of electrical components.
[0020] In the steps of generating a two-dimensional electrical schematic diagram, first call the drawing command in the Revit software to draw the two-dimensional blocks of the electrical components involved in the BIM three-dimensional drawing, then store the two-dimensional blocks in the electrical component library, and finally execute the drawing program instructions according to the electrical circuit drawing standard to draw the electrical component blocks into a two-dimensional electrical schematic diagram according to the power supply circuit.
[0021] Preferably, in step one, automatic cable arrangement program instructions are set in the automatic cable arrangement module so that the cables are automatically arranged at the horizontal bends, upper bends, lower bends and elbows of the bridge path, and the cables do not overlap, conflict or pass through the bridge.
[0022] Preferably, in step five, the automatic connection between the cable and the distribution box is achieved by: obtaining the cable connector from the BIM three-dimensional drawing through the ConnectorManager.Connectors field in C#, obtaining the connector of the distribution box from the BIM three-dimensional drawing through the MEPModel.ConnectorManager field in the C# language, and obtaining the coordinates of the cable in the BIM three-dimensional drawing through connector.Origin; and obtaining the coordinates of the connectors on the cable and the distribution box in the BIM three-dimensional drawing, calculating the two connectors closest to the cable and the distribution box, and automatically generating a cable between the cable connector and the distribution box connector.
[0023] In drawing, it is necessary to automatically connect the cables and distribution boxes in the BIM three-dimensional drawing. Just click the cable connection distribution box function in the menu bar, and then select the cables and distribution boxes to be connected. The cables will automatically connect to the distribution boxes and have loop properties.
[0024] The working principle of the cable BIM model generation system based on Revit software is as follows: in the automatic cable layout module, the "wire pipe" module is called through the C# language as the cable. The wire pipe is originally a protective tube outside the cable. In actual engineering, the cable has a loop property. The wire pipe that protects the cable is also defined as having a "loop" property in Revit software.
[0025] In the underlying operating logic of Revit software, conduits have the ability to connect terminals to form a loop. This system leverages the "loop" advantage of the conduit module, using it as a "cable" in BIM 3D drawings. Conduits are then called in the cable creation window and their parameters configured, allowing them to be used as cables in subsequent drawings and calculations.
[0026] This system also has the following advantages in automatically drawing the power supply circuit BIM three-dimensional diagram:
[0027] 1. More reasonable layout: The cable BIM 3D diagram drawn by the wire tube has loop characteristics, which can automatically reflect all layout paths without the need to write additional cable layout programs. Therefore, the cable BIM 3D diagram drawn by the wire tube is more reasonable in layout.
[0028] 2. More accurate quantity calculation: Since the cable BIM 3D diagram automatically forms a loop, there is no need to set up separate calculation rules for the cable geometry information. The cost and physical quantity calculations can be completed directly using the cost and physical quantity calculation rules of the Revit software.
[0029] 3. Automatically draw a two-dimensional power supply circuit diagram: Since the cable is drawn using a conduit, it has circuit characteristics, so a system diagram creation module is set up. This module captures the parameter information of each component on the power supply circuit and automatically outputs a two-dimensional electrical schematic diagram that matches the power supply circuit according to the general legend rules of electrical components. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is a status diagram of the cable plug-in in the menu bar based on Revit software;
[0031] Figure 2 Create cable interface diagram for automatic cable layout module;
[0032] Figure 3 It is the path selection interface and the three-dimensional view of roads and bridges;
[0033] Figure 4 This is a schematic diagram of the cables and distribution box before and after connection;
[0034] Figure 5 This is a schematic diagram of the coordination between cables, distribution boxes, and roads and bridges;
[0035] Figure 6 It is a two-dimensional electrical schematic diagram;
[0036] Figure 7 It is the cable engineering quantity table. DETAILED DESCRIPTION
[0037] The following is further explained in detail through specific implementation methods.
[0038] like Figure 1 As shown, the cable BIM model generation system based on Revit software is specifically a cable plug-in installed in the first-level menu interface of Revit software, including automatic cable layout module 1, cable connection distribution box module 2 and system diagram creation module 3; the automatic cable layout module 1, cable connection distribution box module 2 and system diagram creation module 3 are respectively displayed in the second-level menu bar of the cable plug-in as independent selectable controls, and click to enter the corresponding module function.
[0039] like Figure 2 As shown in the figure, the automatic cable layout function is implemented. After the system is started, the user finds the cable plug-in in the first-level menu interface of the Revit software and clicks it to enter the second-level menu bar. In the second-level menu bar, select the "Auto Cable Route" module. The system pops up the cable creation window, which includes the conduit selection interface, cable configuration interface, and path selection interface.
[0040] Add a button control in the menu bar that can select automatic layout and call the line and pipe module of the Revit software. Use the following fields in C# language to implement it:
[0041] PushButtonData("AutoLayoutBridgeCables","Auto Layout Cables",Assembly.GetExecutingAssembly().Location,"HeLiRevitPlugin.Electromechanical.AutoCables").
[0042] like Figure 3 As shown in the figure, in the path selection interface, the system calls the Revit software API via C# to automatically retrieve all available bridge paths 4 in the BIM 3D diagram and display them in the path selection list. The user can select bridge path 4 based on actual needs and click the preview control to view detailed information about the selected bridge path 4 in the BIM 3D diagram, including the starting point, end point, path length, and bridge type.
[0043] After confirming the path, click the Draw control. The system will automatically calculate the cable routing based on the selected path and plot the cable route on the BIM 3D diagram. This allows users to intuitively see the cable layout within the bridge, including automatic routing at horizontal bends, upper bends, lower bends, and elbows, ensuring that cables do not overlap, conflict, or cross the bridge.
[0044] like Figure 4 As shown, the function of connecting cable 5 to distribution box 6 is realized; after the automatic cable arrangement is completed, if you want to connect cable 5 to distribution box 6, the user clicks the cable connection box module in the secondary menu bar. The system pops up the connection operation prompt interface, Figure 4 (a) The cable and distribution box are not connected. The user is required to select the cable and distribution box to be connected in sequence. After the user completes the selection, the system calls the API of the Revit software through the C# language to set the parameters at the connection point of the distribution box 6 and the cable 5, so that the cable and distribution box are automatically connected and a complete three-dimensional structure diagram of the power supply circuit is formed (as shown in the figure). Figure 4 (b)).
[0045] The C# language calls the API of the Revit software to realize the automatic connection of the cable and the distribution box. The specific implementation process is: the ConnectorManager.Connectors field in C# obtains the cable connector from the BIM three-dimensional drawing, and the MEPModel.ConnectorManager field in the C# language obtains the connector of the distribution box from the BIM three-dimensional drawing. The coordinates of the cable in the BIM three-dimensional drawing are obtained through connector.Origin; and the coordinates of the connectors on the cable and the distribution box in the BIM three-dimensional drawing are obtained, the two connectors closest to the cable and the distribution box are calculated, and the cable between the cable connector and the distribution box connector is automatically generated.
[0046] like Figure 5 As shown, the user can view the connection effect in the three-dimensional view, check whether the cable 5 is correctly connected to the corresponding connector of the distribution box 6, and whether the loop is complete.
[0047] like Figure 6 As shown in the figure, after the cables and distribution boxes are connected to form a power supply circuit, users can generate a 2D electrical schematic by clicking the "Create System Diagram" module in the secondary menu bar. The system first calls the drawing command in Revit software. Based on the parameter information of the distribution boxes, cables, and other components in the 3D structure diagram of the power supply circuit, it draws the corresponding 2D blocks and stores them in the electrical component library.
[0048] Based on electrical circuit drawing standards, the system automatically arranges and combines these 2D blocks according to the logical relationships of the power supply circuit, generating a 2D electrical schematic that matches the power supply circuit and displays it on the electrical schematic output interface. Users can preview and edit this system diagram and, through a download link, save it as a common graphic format file for subsequent use.
[0049] like Figure 7 As shown in the figure, the cable quantity table output is implemented. After completing the cable layout, users can obtain cable quantity data by clicking the "Cable Quantity Table Output" control in the secondary menu bar. The system calls the Revit software API to collect relevant data for all cables in the BIM model, including cable model, specification, length, quantity, and other information.
[0050] The system organizes and calculates the collected data according to the calculation rules of cost and physical quantity, generates a standard cable quantity table, and provides a download function so that users can export it to Excel or other commonly used table format files for related work such as engineering quantity statistics and cost calculation.
[0051] The above is only an embodiment of the present invention, and the common knowledge such as the specific technical solutions and / or characteristics in the solution are not described in detail here. It should be pointed out that for those skilled in the art, without departing from the technical solution of the present invention, several variations and improvements can be made, which should also be regarded as the scope of protection of the present invention, and these will not affect the effect of the implementation of the present invention and the practicality of the patent. The scope of protection required by this application shall be based on the content of its claims, and the specific implementation methods and other records in the description can be used to interpret the content of the claims.
Claims
1. A cable BIM model generation system based on Revit software, which is a cable plug-in installed in Revit software, characterized in that: Includes automatic cable layout module, cable connection distribution box module and system diagram creation module; The automatic cable layout module is used to call the conduit module in the Revit software, configure the selected conduit as cable parameters, including cable diameter, cable specifications and cable material, identify the bridge in the BIM three-dimensional drawing, select the bridge to lay the cable, and automatically layout the configured cable into the selected bridge; The cable connection distribution box module is used to connect the cable and the distribution box in the BIM three-dimensional diagram to form a power supply circuit from the power supply end to the distribution box; Create a system diagram module to extract the distribution box in the BIM three-dimensional diagram and the cable parameter information connected to the distribution box, and output a two-dimensional electrical schematic diagram that matches the power supply circuit.
2. The cable BIM model generation system according to claim 1, characterized in that The automatic cable arrangement module is provided with a cable creation window, which includes a wire pipe selection interface and a cable configuration interface. The wire pipe selection interface is used to display a list of all called wire pipes, and all wire pipes in the wire pipe list can be selected. The cable configuration interface is used to display the selected wire pipes and provide editing controls that can configure the wire pipes as cables.
3. The cable BIM model generation system according to claim 2, characterized in that: The automatic cable arrangement module also includes a path selection interface for automatically obtaining the bridge path where the cables need to be laid in the BIM three-dimensional drawing and displaying all available bridge paths.
4. The cable BIM model generation system according to claim 3, characterized in that: The path selection interface is provided with a preview control and a drawing control. Clicking the preview control allows the selected bridge path to be viewed in the BIM three-dimensional diagram; clicking the drawing control allows the bridge path to be drawn in the BIM three-dimensional diagram.
5. The cable BIM model generation system according to claim 4, characterized in that: It also includes a cable quantity table output control. Click the cable quantity table output control to collect cable quantity data and form a standard cable quantity table output.
6. The cable BIM model generation system according to claim 5, characterized in that: The system diagram creation module also includes an electrical schematic diagram output interface, which is used to collect electrical information of all power supply circuits in the BIM three-dimensional diagram, automatically generate a two-dimensional electrical schematic diagram, and provide a download interface.
7. A cable BIM model generation method based on Revit software, relying on the cable BIM model generation system according to claim 6, characterized in that: Step 1: Click the cable plug-in to enter the secondary menu bar, then click the automatic cable layout module, execute the call wire tube module command, and display all available wire tubes; Step 2: Configure the selected conduit as cable parameters, including cable diameter, cable specifications, and cable material; Step 3: Select the bridge part in the BIM 3D diagram, and display multiple alternative bridge paths in the path selection interface based on the starting and ending points of the cable laying; Step 4: Select the bridge path where the cable is to be laid, and click the confirmation button of the automatic cable layout module to automatically lay the cable in the bridge path; Step 5: Click the Cable Connection Distribution Box module, select the cables and distribution boxes to be connected, and the Cable Connection Distribution Box module automatically connects the cables and distribution boxes in the BIM 3D drawing.
8. The cable BIM model generation method according to claim 7, characterized in that: It also includes the steps of generating a two-dimensional electrical schematic diagram, specifically: click the Create System Diagram module, collect the electrical information of all power supply circuits in the BIM three-dimensional diagram, and generate a two-dimensional electrical schematic diagram according to the general legend rules of electrical components.
9. The cable BIM model generation method according to claim 7, characterized in that: In step one, the automatic cable arrangement program instructions are set in the automatic cable arrangement module so that the cables are automatically arranged at the horizontal bends, upper bends, lower bends and elbows of the bridge path, and the cables do not overlap, conflict or pass through the bridge.
10. The cable BIM model generation method according to claim 7, characterized in that: In step 5, the automatic connection between the cable and the distribution box is achieved as follows: Get the cable connectors from the BIM 3D drawing through the ConnectorManager.Connectors field in C#, get the distribution box connectors from the BIM 3D drawing through the MEPModel.ConnectorManager field in C#, get the cable coordinates in the BIM 3D drawing through connector.Origin; and get the coordinates of the connectors on the cable and the distribution box in the BIM 3D drawing. Calculate the two connectors closest to the cable and the distribution box, and automatically generate a cable from the cable connector to the distribution box connector.