Long-distance multi-section channel modeling method based on Civil3D
By creating variable trapezoidal cross-section components and target parameter polylines in Civil3D, the inefficiency of traditional modeling methods is solved, enabling rapid and accurate modeling of long-distance multi-section channels and improving modeling and design efficiency.
Patent Information
- Application Number
- CN202211375508.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-04
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2042-11-04
AI Technical Summary
Traditional Civil 3D modeling methods are inefficient in modeling long-distance, multi-section channels, making it difficult to quickly and accurately model transition sections. Furthermore, the large number of custom components and parameters leads to a decrease in modeling efficiency as the number of road model areas increases.
By using variable trapezoidal cross-section components, variable trapezoidal cross-sections are created through parametric key control points. Target parameter polylines are calculated, and automatic assembly and channel modeling are achieved through secondary development of Civil3D, reducing the number of road areas and improving modeling efficiency.
It significantly improves the efficiency of modeling and designing long-distance, multi-section channels, reduces design change costs, and shortens the design cycle.
Smart Images

Figure CN115600300B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of water conservancy channel modeling, and particularly relates to a long-distance multi-section channel modeling method based on Civil3D. BACKGROUND
[0002] With the wide application of BIM technology, the water conservancy industry has gradually realized three-dimensional forward design and in-depth application based on Civil3D, and at the same time, some specific types of projects have put forward higher and higher requirements for the efficiency and accuracy of three-dimensional modeling. The design of water diversion projects often involves long-distance multi-section channel modeling requirements, such as, Figure 1 The channel model shown includes trapezoidal sections, gradual transition sections, rectangular sections, gradual transition sections, trapezoidal sections, gradual transition sections, rectangular sections, gradual transition sections, trapezoidal sections, gradual transition sections, rectangular sections, and the like (the gradual transition section is used to transition between the trapezoidal section and the rectangular section), and such linear projects have the characteristics of long extension, different section sizes, and multiple forms, so how to quickly and accurately model has a great influence on the entire design cycle.
[0003] For such long-distance multi-section channels, the traditional Civil3D road function is used to realize three-dimensional design, which is complex and the gradual transition section is not easy to implement: in the traditional Civil3D modeling method, the road area is usually taken as the basic unit (each section is a road area), and different section sizes and forms of custom parameterized components (i.e., different assemblies) are created for rectangular sections, trapezoidal sections, and transition sections, and then the modeling is performed jointly. Although this method can meet the basic modeling requirements, it has the following limitations:
[0004] 1. Different assemblies need to be created for different forms of channel sections, which increases the number of custom components, parameters, and road model area numbers;
[0005] 2. In actual modeling, the offset logic target line calculation of the gradual transition section assembly is complex and difficult to implement manually;
[0006] 3. When the number of road areas gradually increases, the Civil3D modeling efficiency will be greatly reduced or even become stuck.
[0007] Therefore, the traditional modeling method is difficult to implement the modeling of the gradual transition section, and the overall modeling efficiency becomes lower and lower with the increase of the number of road model areas, which brings many inconveniences to the three-dimensional modeling of long-distance, multi-section water diversion linear projects. SUMMARY
[0008] The technical problem to be solved by the present application is to provide a long-distance multi-section channel modeling method based on Civil3D to improve the modeling speed.
[0009] To solve the above problems, the application discloses a long-distance multi-section channel modeling method based on Civil3D, which comprises the following steps:
[0010] creating a variable trapezoidal section component: a plurality of section forms are summarized as a variable trapezoidal section, offset targets and elevation targets are set for key control points of the variable trapezoidal section, key control point variables are parameterized, and a corresponding variable trapezoidal section component is created;
[0011] calculating a target parameter polyline: according to the actual situation of a channel to be modeled, the section form of each channel and the cross-section design parameter under the section form are arranged along the route stake, and the arrangement information is processed to obtain a target parameter polyline, wherein the target parameter polyline comprises an offset target line and an elevation target line of the variable trapezoidal section under each stake;
[0012] creating a channel model: based on the variable trapezoidal section component, a road area with the same number of stakes as the channel to be modeled is created, the data of the target parameter polyline is correspondingly assigned to the road area and is mirrored, and then the channel modeling is completed according to a conventional process.
[0013] Preferably, the variable trapezoidal section component is created by: in the component editor of Civil3D, taking the midpoint of the channel bottom as the base point, predefining the channel top width, channel bottom width and channel depth parameters, setting the offset target parameters at the right vertex of the channel top and the right vertex of the channel bottom, and setting the elevation target parameter at the channel top to create the variable trapezoidal section component, and then obtaining the corresponding guid code.
[0014] Preferably, in the creation of the channel model, the guid code of the variable trapezoidal section component is called by the program background through the SubassemblyCollection.ImportSubassembly interface, the variable trapezoidal section component is loaded and automatically assembled to create; and then the road model creation API is called to create a road area with the same number of stakes as the channel to be modeled.
[0015] Preferably, the target parameter polyline is determined by: based on the secondary development of Civil3D, a visual parameter input interface is set; the arrangement information input by the user is obtained through the visual parameter input interface, the positioning points of the offset target line and the elevation target line under different variable trapezoidal sections are calculated along the channel center line and the stakes, and the target parameter polyline is generated.
[0016] Compared with the prior art, the application has the following advantages:
[0017] In the application, the Civil3D is developed secondarily, the variable trapezoidal section assembly is created by induction and abstraction of section forms, the process of creating multi-section and multi-road region is flexibly converted into the process of calculating the key control line of single variable trapezoidal section, and only one road region needs to be created, so that the number of road model regions is greatly reduced, the model creation efficiency is greatly improved, and the modeling efficiency and design efficiency of long-distance multi-section diversion water engineering canal system buildings can be effectively improved, so that the cost of design change can be effectively reduced, and the design cycle can be shortened. BRIEF DESCRIPTION OF DRAWINGS
[0018] The specific embodiments of the application will be further described in detail below with reference to the accompanying drawings.
[0019] Figure 1 It is a multi-section channel model in the application.
[0020] Figure 2 It is a channel excavation curved surface model in the application.
[0021] Figure 3 , Figure 4 It is a part of the variable trapezoidal section assembly setting interface in the application.
[0022] Figure 5 It is a part of the user interaction interface in the application.
[0023] Figure 6 It is a target line offset calculation result graph in the application.
[0024] Figure 7 It is Figure 6 It is a local enlarged view of A in the application.
[0025] Figure 8 It is a region merging schematic diagram of the implementation result of the application. DETAILED DESCRIPTION
[0026] The embodiment of the application provides a long-distance multi-section channel modeling method based on Civil3D, which specifically comprises the following steps:
[0027] (1) Create a variable trapezoidal section component: a variable trapezoidal section is induced from a plurality of section forms, offset targets and elevation targets are set for the key control points of the variable trapezoidal section, the key control point variables are parameterized, and the corresponding variable trapezoidal section component is created.
[0028] Specifically, there are many different sizes and different forms of channel cross sections involved in long-distance canal engineering, including inlet transition section, trapezoidal channel, transition section, rectangular channel, outlet transition section, etc. These cross sections are symmetrical about the midpoint of the channel bottom, including cross section structure, foundation, and excavation, so these cross sections can be abstracted into a variable trapezoidal cross section, and then the shape of the cross section can be dynamically changed through key control points such as channel top width, channel bottom width, and channel depth.
[0029] In the Civil3D component editor, the midpoint of the channel bottom is taken as the base point, the key control point parameters such as channel top width, channel bottom width, and channel depth are predefined, the offset target parameters are set at the right vertex of the channel top and the right vertex of the channel bottom, and the elevation target parameter is set at the channel top. For each target parameter, a specific parameter name is set, and the interface can refer to Figure 3 . According to the above parameters, a parameterized variable trapezoidal cross section component is drawn, as shown in Figure 4 . Add point, line, and modeling code to the completed component, then import Civil3D to automatically generate a unique guid code corresponding to the variable trapezoidal cross section component.
[0030] (2) Calculate the target parameter polyline: according to the actual situation of the channel to be modeled, arrange the cross section form and the cross section design parameters under this cross section form along the route stake, and process the arrangement information to obtain the target parameter polyline. The target parameter polyline includes the offset target line and the elevation target line of the variable trapezoidal cross section at each stake.
[0031] In theory, if the offset target parameters and the elevation target parameters of the variable trapezoidal cross section at each stake on the channel to be modeled are known (both are polylines), the channel model can be directly created based on the variable trapezoidal cross section assembly. However, in actual engineering, the offset target parameters and the elevation target parameters cannot be directly obtained from the engineering construction data, but are indirectly obtained by calculating the cross section design parameters of two consecutive channel sections, so step (2) is set to calculate the target parameter polyline.
[0032] In practical application, the implementation steps of step (2) to calculate the target parameter polyline can refer to the following content:
[0033] (21) Based on Civil3D secondary development, set up a Winform visual parameter input interface as the data input end; according to the actual situation of the channel to be modeled, the user arranges the stake interval, cross section form, and design parameters under this cross section form along the route in the visual parameter input interface according to the design concept. For example Figure 5In the "building layout", the range of "start and end stake number" can be set, and the building form in the stake number range is selected, including trapezoidal drainage ditch, gradual change section, rectangular drainage ditch and the like; in the "cross section design", the "channel bottom width", "channel depth", "slope", "roughness" of the cross section of the determined building form are set.
[0034] (22) Obtain the layout information input by the user through the visual parameter input interface, calculate the positioning points of the offset target line and the elevation target line under different variable trapezoidal cross sections along the channel center line according to the layout information, and generate the target parameter polyline.
[0035] In the application, the cross section design parameters of different cross section forms are different, for example: the cross section design parameters of the rectangular section and the trapezoidal section are the channel bottom width, the channel depth and the slope length; the gradual change section is divided into three types of inlet gradual change section, middle gradual change section and outlet gradual change section according to different positions, the cross section design parameters of the inlet gradual change section are the inlet width and the slope, the cross section design parameters of the outlet gradual change section are the outlet width and the slope, and the cross section design parameters of the middle gradual change section are the cross section parameters of the previous and the next sections. According to these cross section design parameters, the offset target parameters and the elevation target parameters (polyline) of the variable trapezoidal cross section under each stake number can be converted according to the front and rear position relationship and the geometric relationship of the cross section. Both kinds of offset parameters are based on the channel center line, and a point is calculated every 0.1m along the route to generate the offset target line and the elevation target line. As shown in Figure 6 and Figure 7 It is shown that these polylines are placed in a fixed layer at the same time, which is convenient for management.
[0036] (3) Create a channel model: based on the variable trapezoidal cross section component, create a road area with the same number of stakes as the channel to be modeled, assign the data of the target parameter polyline to the road area and mirror, and then complete the channel modeling according to the conventional process.
[0037] Specifically, based on the Civil3D platform, the C# language is used for secondary development, the guid code of the variable trapezoidal cross section component is called, the SubassemblyCollection.ImportSubassembly interface is called to realize the component loading and automatic creation of the variable trapezoidal cross section assembly; the road model creation API is called, each target parameter of the variable trapezoidal cross section assembly in the road area is modified to the target parameter polyline generated in step (2), and the effective offset target parameter and the elevation target parameter of the variable trapezoidal cross section under each stake number in the road area are assigned, as shown in Figure 8 .
[0038] Then the terrain surface is specified to generate the model; material parameters are input according to the user interface, Civil3D style API is called to dynamically create and modify the road code set style, the newly created style is assigned to the road model, and a dynamically rendered model is generated.
[0039] In addition, by adjusting the input parameters, the model can be quickly updated: when the designed cross-section design parameters change, the program automatically deletes the original model data by modifying the parameter values through the interface. At the same time, the original calculation data is emptied according to the layer set in step (2), and a new target parameter polyline is generated to quickly create a model after the change.
[0040] As can be seen from the above, in actual operation, the drainage ditch design module is developed based on the Civil3D software, integrates the functions of Civil3D route, longitudinal section, component editor, road, etc., the user interface of secondary development is friendly, and the user can input the drainage channel cross-section parameters and the corresponding stake number interval according to the design concept, and the drainage measure road can be generated by one key.
[0041] The above describes the technical solutions provided by the present application in detail. The principles and implementation modes of the present application are described by applying specific examples, and the above examples are only used to help understand the method and core idea of the present application. It should be pointed out that, for ordinary skilled persons in the technical field, some improvements and modifications can be made to the present application without departing from the principles of the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
Claims
1. A long distance multi-section channel modeling method based on Civil3D, characterized in that, The method comprises: Creating a variable trapezoidal section component: classifying multiple section forms into a variable trapezoidal section, setting offset targets and elevation targets for key control points of the variable trapezoidal section, parameterizing key control point variables, and creating a corresponding variable trapezoidal section component; Calculating a target parameter polyline: according to the actual situation of a channel to be modeled, arranging section forms and cross-section design parameters under the section forms of each channel along the route stake, and processing the arrangement information to obtain a target parameter polyline, wherein the target parameter polyline comprises offset target lines and elevation target lines of the variable trapezoidal section under each stake; Creating a channel model: based on the variable trapezoidal section component, creating a road area with the same number of stakes as the channel to be modeled, assigning data of the target parameter polyline to the road area and mirroring, and then completing channel modeling.
2. The method of claim 1, wherein, The variable trapezoidal section component comprises: In the component editor of Civil3D, taking the midpoint of the channel bottom as the base point, predefining channel top width, channel bottom width and channel depth parameters, setting offset target parameters at the right vertex of the channel top and the right vertex of the channel bottom, and setting elevation target parameters at the channel top to create a variable trapezoidal section component, and then obtaining the corresponding guid code.
3. The method of claim 2, wherein, In the creation of the channel model, according to the guid code of the variable trapezoidal section component, the program background calls the SubassemblyCollection.ImportSubassembly interface to load the variable trapezoidal section component and automatically assemble and create; and then calls the road model creation API to create a road area with the same number of stakes as the channel to be modeled.
4. The method of claim 1, wherein, The target parameter polyline comprises: Based on Civil3D secondary development, a visual parameter input interface is set; Through the visual parameter input interface, the arrangement information input by the user is obtained, and according to the arrangement information, the positioning points of the offset target lines and the elevation target lines under different variable trapezoidal sections are calculated along the channel center line by stake to generate the target parameter polyline.
5. The method of claim 3, wherein, The arrangement information comprises the start and end stake numbers of each building and the cross-section design parameters of the building, wherein: The cross-section design parameters of the rectangular section and the trapezoidal section are channel bottom width, channel depth and slope length; The cross-section design parameters of the inlet gradual change section are inlet width and slope; The cross-section design parameters of the outlet gradual change section are outlet width and slope; The cross-section design parameters of the intermediate gradual change section are the section parameters of the previous and next sections.
Citation Information
Patent Citations
Full-parameterization establishing method for road three-dimensional model
CN105138788A
Under ice open channel water conveyance canal and optimized hydraulic cross section solution method
CN106503344A