A Design Modeling Method for 500kV Cables in Hydropower Stations Based on Revit Secondary Development
By establishing a cable support family library and developing a design modeling interface, and utilizing Revit secondary development technology to automatically arrange cable supports, the problems of standardization and precise positioning in 3D design were solved, achieving efficient 500KV cable design and engineering quantity statistics.
Patent Information
- Application Number
- CN202310853081.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2023-06-26
- Filing Date
- 2023-07-12
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2043-07-12
AI Technical Summary
The existing 3D design environment lacks standardization in the design and modeling of 500KV cables. Designers have to make manual adjustments, which is labor-intensive and inaccurate, making it difficult to achieve precise positioning for serpentine laying.
By establishing a 500KV cable support family library and developing a design modeling interface in Revit software, cable supports are automatically arranged along the path using secondary development technology, cable models are generated, and cable sag is calculated.
It has achieved standardized and parametric cable design modeling, improved design efficiency and accuracy, and can quickly generate three-dimensional models to meet the needs of engineering quantity statistics, thus promoting the development of BIM technology in hydropower engineering.
Smart Images

Figure CN117150662B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of cable laying design, and specifically to a design and modeling method for 500KV cables in hydropower stations based on Revit secondary development. Background Technology
[0002] In the hydropower industry, projects with a single unit capacity of 150,000 kilowatts or more, and underground powerhouses with switchyards located outside the tunnels, generally use cable connections in over 90% of their projects. The 500kV cable, starting from the main transformer tunnel, runs through the outgoing line well and then to the switchyard, involving complex paths, numerous loops, long distances, and high costs. Previously, CAD design only completed the path lines and typical diagrams, making it difficult to fully represent the design intent and accurately calculate material quantities. With the rapid adoption of digital technology in hydropower construction, the design method for 500kV cables in hydropower stations has gradually evolved from the previous two-dimensional CAD design to the current three-dimensional design. Three-dimensional models of 500kV cables and supports created using Autodesk Revit software can clearly demonstrate the design intent and accurately calculate material quantities. However, this has also created new problems.
[0003] The shortcomings and deficiencies of existing technologies are as follows: 1) There are multiple ways to design and model 500KV cables in the existing 3D design environment. Different designers use different methods, which makes it difficult to form a standard and output a unified design result; 2) 500KV cables are laid in a serpentine pattern. In the existing 3D design environment, a large number of cable control points need to be added for spatial positioning in plane and section to achieve the serpentine laying. The manual adjustment workload is large and the positioning is inaccurate. Summary of the Invention
[0004] The main objective of this invention is to provide a design and modeling method for 500KV cables in hydropower stations based on Revit secondary development, thereby solving the problems mentioned in the background art.
[0005] To solve the above-mentioned technical problems, the technical solution adopted by the present invention includes the following steps: S1. Establish a 500KV cable support family library; S2. Develop a 500KV cable design and modeling operation interface; S3. Draw the cable laying path, and automatically arrange cable supports along the path and generate a 500KV cable model through secondary development. S4. Calculate and generate the cable sag arc based on the input cable sag parameters.
[0006] Preferably, in step S1, the 500KV cable support family includes single-layer portal supports, vertical single-sided supports, double-layer portal supports, double-layer pinion supports, connecting section supports, and descending section supports. The specific details of step S1 are as follows: S101. Based on the 500KV cable support drawings, establish models of each support and store them in the database; S102. Create clamps in each bracket family, load them into the bracket family in a nested manner, set their family type to pipe fitting, and add pipe connectors to facilitate subsequent connection with cables. S103. Add parameters to each bracket family to control the changes in the relevant dimensions of the family; S104. Load the family library into the 500KV cable laying project file.
[0007] Preferably, the parameters added to each bracket family in step S103 include phase spacing, bracket width, cable height of each layer, and clamp rotation angle.
[0008] Preferably, the development of the 500KV cable design modeling operation interface in step S2 is created based on WPF in the Visual Studio environment, specifically including functions such as planar cable laying, vertical shaft cable laying, line-to-cable conversion, and cable sag generation.
[0009] Preferably, the specific steps of step S3 are as follows: S301. In the 500KV cable laying project file, draw the cable laying path line using model lines, and pick the cable laying path line through the 500KV cable design modeling operation interface, select the cable support family type, and set the relevant modeling parameters. S302. Based on the selected path, bracket type and set parameters, automatically arrange the corresponding 500KV cable bracket family along the path, and generate flexible hoses and form connections based on the connectors at both ends of the family.
[0010] Preferably, in step S4, the position of the center sag point of the cable segment is calculated based on the cable distance between the two supports and the set sag parameters, and then added as a cable control point.
[0011] This invention provides a design and modeling method for 500kV cables in hydropower stations based on Revit secondary development, with the following advantages: 1. A standardized and parameterized 500KV cable support library has been established; 2. Based on the secondary development of existing 3D design software, a standard, unified, and rapid 500KV cable design and modeling approach has been formed. With this method, you only need to manually draw the cable laying path in Revit. Based on the path, this method can quickly call the 500KV cable laying bracket family library and automatically arrange it along the path. At the same time, the 500KV cable is automatically generated through the connectors at both ends of the bracket, thereby quickly establishing the 500KV cable and bracket model. 3. Furthermore, it can generate cable sags with a single click according to design requirements, quickly expressing the three-dimensional overall shape of 500KV cable laying in hydropower stations, improving design efficiency and quality, while also meeting the requirements for accurate engineering quantity statistics, thus promoting the development of BIM technology in the field of hydropower engineering. Attached Figure Description
[0012] The present invention will be further described below with reference to the accompanying drawings and embodiments: Figure 1 This is a schematic diagram of the main components and parameters in the cable support family library of the present invention; Figure 2 This is a WPF user interface view of the planar cable generation function of this invention; Figure 3 This is the cable design modeling function option view of the present invention; Figure 4 This is a schematic diagram illustrating the generation of the planar cable and bracket of the present invention; Figure 5 This is a schematic diagram of the cable drooping after the present invention has been applied. Detailed Implementation
[0013] Example 1 like Figures 1-4 As shown, a design modeling method for 500kV cables in hydropower stations based on Revit secondary development includes the following steps: Step 1: Establish a 500KV cable support family library; Step 2: Develop a 500KV cable design and modeling interface; Step 3: Draw the cable laying path, and automatically arrange cable supports along the path and generate a 500KV cable model through secondary development; Step 4: Calculate and generate the cable sag arc based on the input cable sag parameters.
[0014] The specific steps for establishing a 500kV cable support family library are as follows: Step 1: Based on the 500KV cable support drawings provided by the cable manufacturer, identify the support types and establish single-layer portal supports, vertical single-sided supports, double-layer portal supports, double-layer bracket supports, connecting section supports, and descending section supports respectively. Step 2: Using the metric standard model template provided by Revit, create the clamps to be used in each bracket family, set the clamp rotation angle parameters, and set pipe connectors at both ends of the clamps. Define the clamp family category as "pipe fitting" and the part type as "multiple ports". Load the clamp family into the bracket family in a nested manner. Set the serial number parameter for the connector on each clamp in the bracket family, with odd numbers on the left and even numbers on the right. And associate the "clamp rotation angle parameter" in the clamp family with the clamp rotation angle parameter of the bracket family. Step 3: Create relevant control parameters for the size change and clamp position change of different bracket families. The control parameters added to different bracket families are different, mainly including phase spacing, bracket width, cable height of each layer, and clamp rotation angle. Step 4: Load the created family library into the 500KV cable laying project file. The main component families and parameters in the family library are as follows: Figure 1 As shown.
[0015] The specific steps for developing a design and modeling interface for 500kV cables are as follows: Step 1: Create a C#-based class library project in the Visual Studio environment, then add a WPF window. Design a 500KV cable design and modeling interface based on the WPF window. Create a form object in the main code and implement the opening of a non-modal form. The WPF window for planar cable laying is shown below. Figure 2 As shown; Step 2: Add a class to the Visual Studio project file, reference the Revit API .dll and RevitAPIUI .dll files, inherit the IExternalApplication interface, and call the OnStartup and OnShutdown functions to write the interface extension program code. Use the "CreateRibbonTab" command and the "CreateRibbonPanel" command to create the 500KV cable design modeling tab and panel respectively. Use "new PushButtonData" to create data for the planar cable laying, vertical shaft cable laying, line to cable, and cable sag function buttons respectively, and use "RibbonPanel.AddItem" to add each function button to the 500KV cable design modeling panel. Step 3: Run the class library in Visual Studio to generate the .dll file, obtain the file location, and use the external tool Add-In Manager plugin in Revit to load the .dll file and generate the interface extension .addin file. Place it in the Addins folder of your local Revit application to form the interface extension plugin. After completion, the Revit extension module will have cables laid out for each function button, as shown below. Figure 3 As shown; The specific steps for drawing the cable laying path and generating 500KV cables and cable supports along the path are as follows: Step 1: Draw the cable laying path in the 500KV cable laying project file using model lines. Add a class to the Visual Studio project file, reference the Revit API .dll and Revit APIUI .dll files, inherit the IExternalCommand interface, use the "SelectionPickObjects" function to pick the cable laying path, and reorder the path. Filter the selection of cable support families, elevations, cable types, and set the cable diameter and clamp rotation angle parameters in the 500KV cable laying project file. Step 2: Based on the selected path, bracket type, and set parameters, use the "Create.NewFamilyInstance" function to automatically place the corresponding 500KV cable bracket family along the path. Read the placed cable bracket family, obtain the clamp connectors, and divide the connectors into odd and even groups based on their serial number parameters. Use the "Create.NewFlexPipe" function to generate flexible tubing from the connectors at both ends of the clamp and form a connection. A schematic diagram of the generated planar cable and bracket is shown below. Figure 4 As shown.
[0016] The specific steps for calculating and generating the cable sag based on the input parameters are as follows: Step 1: Select all cables in the project file that need to generate cable sags, and read the length and type of all picked cables; Step 2: Set cable sag parameters according to cable type, calculate and obtain the coordinates of the center point of the cable segment, calculate the required sag distance of the cable center point based on the cable length, obtain the coordinates of the center point after sag, and create a new point. Add this point as the control point of the cable segment to achieve cable sag. A schematic diagram of the sag cable is shown below. Figure 5 As shown.
[0017] The above embodiments are merely preferred technical solutions of the present invention and should not be considered as limitations on the present invention. The scope of protection of the present invention should be limited to the technical solutions described in the claims, including equivalent substitutions of the technical features described in the claims. That is, equivalent substitutions and improvements within this scope are also within the scope of protection of the present invention.
Claims
1. A design modeling method for 500kV cables in hydropower stations based on Revit secondary development, the method being: Includes the following steps: S1. Establish a 500KV cable support family library; The 500kV cable support family includes single-layer portal supports, vertical single-sided supports, double-layer portal supports, double-layer bracket supports, connecting section supports, and descending section supports. The specific steps are as follows: S101. Based on the 500KV cable support drawings, establish models of each support and store them in the database; S102. Create clamps in each bracket family, load them into the bracket family in a nested manner, set their family type to pipe fitting, and add pipe connectors to facilitate subsequent connection with cables. S103. Add parameters to each bracket family to control the changes in the relevant dimensions of the family; S104. Load the family library into the 500KV cable laying project file; S2. Develop a 500KV cable design and modeling operation interface; The 500KV cable design modeling interface was developed using WPF in the Visual Studio environment. It references the RevitAPI.dll and RevitAPIUI.dll files, inherits the IExternalApplication interface, and is loaded as a Revit interface extension plugin. Specifically, it includes functions for planar cable laying, vertical cable laying, line-to-cable conversion, and cable sag generation. S3. Draw the cable laying path, and automatically arrange cable supports along the path and generate a 500KV cable model through secondary development; the specific steps are as follows: S301. In the 500KV cable laying project file, draw the cable laying path line using model lines, and pick the cable laying path line through the 500KV cable design modeling operation interface, select the cable support family type, and set the relevant modeling parameters. S302. Based on the selected path line, support type and set parameters, automatically arrange the corresponding 500KV cable support family along the path line; read the arranged support family, obtain its clamp connectors, divide the connectors into odd and even groups according to the connector serial number parameter, generate hoses and form connections according to the connectors at both ends of the clamp. S4. Calculate and generate the cable sag arc based on the input cable sag parameters; Select all cables in the project file for which cable sags need to be generated, and read the actual length and type of the cables. Based on the cable distance between the two supports and the set sag parameters, calculate the position of the center sag arc point of the cable segment, add it as the control point of the cable segment, and generate the cable sag arc.
Citation Information
Patent Citations
Method for drawing pipeline support hanger by Revit
CN110472302A
Cable modeling method and system and electronic equipment thereof
CN115730376A
Dynamo-based pipe gallery tunnel engineering equipment arrangement modeling method
CN116090048A
