CAD-based tree pipe network topological graph generation method
Through CAD drawing software and tree pipe network topology generation system, the tree pipe network topology map is automatically generated, which solves the problem of poor accuracy in node numbering and topology map drawing in the existing technology, and realizes the automation and accuracy of water supply engineering design.
Patent Information
- Application Number
- CN202510458441.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-14
- Publication Date
- 2025-08-19
AI Technical Summary
The existing tree-shaped pipeline node numbering, topology drawing and pipe segment labeling lack automation, resulting in poor accuracy and low efficiency of manual operations.
The CAD drawing software is used to draw the plan pipeline layout diagram, and node numbers and pipe segment labels are performed through the tree pipeline topology diagram generation system. Combined with field survey data, the tree pipeline topology diagram and output node coordinates are generated.
The automation and precise design of tree-shaped pipe network topological diagrams and floor layout diagrams is realized, which improves design efficiency and accuracy, and solves the error and inefficiency problems in manual operations.
Smart Images

Figure CN120509134A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of pipeline network visualization, and in particular relates to a method for generating a tree-like pipeline network topology diagram based on CAD. Background Art
[0002] The tree-like pipe network design tree-like pipe network topology diagram generation system mainly focuses on realizing the automation and precision design requirements of the tree-like pipe network topology diagram drawing, tree-like pipe network plan layout node numbering and pipe section marking in the design process of rural drinking water supply projects.
[0003] The existing tree-like pipeline network node numbering, topology map drawing, and pipe section labeling are all completed manually by engineers. The pipeline network nodes in an area range from 50 to 800 or even more. The nodes need to be numbered one by one according to specific logic, and the topology map needs to be drawn according to the node connection relationship. This process is extremely error-prone and very time-consuming. Summary of the Invention
[0004] Aiming at the problem that the existing tree-like pipe network topology diagram generation method lacks automated drawing and annotation, the present invention provides a CAD-based tree-like pipe network topology diagram generation method.
[0005] In order to achieve the above technical objectives, the technical solutions adopted by the present invention are as follows:
[0006] A method for generating a tree-like pipe network topology diagram based on CAD, comprising the steps of:
[0007] S1. Obtain basic data of water supply network through field survey;
[0008] S2. Draw a planar pipe network layout using CAD drawing software;
[0009] S3. Inputting the layout diagram into the tree-like pipe network topology diagram generation system;
[0010] S4. Numbering nodes and marking pipe sections through a tree-like pipe network topology generation system to generate a tree-like pipe network topology and output the coordinates of the pipe network topology nodes;
[0011] S5. Perform hydraulic calculations based on the basic data of the pipe network topology diagram.
[0012] Furthermore, before the tree-like pipe network topology diagram generation system performs node numbering and pipe section marking on the planar pipe network layout diagram drawn by the CAD drawing software, it is necessary to check the drawn planar pipe network layout diagram:
[0013] Find drawing errors in the floor plan (intersection points of two or more polylines that are very close to each other) and mark them with markers, determine whether there are drawing errors and modify them, and finally standardize the drawings into standard drawings that the system can correctly identify.
[0014] Furthermore, the detailed process of node numbering and pipe segment marking is as follows:
[0015] Generate node numbers: When the user clicks on the starting point, the tree-like pipe network topology generation system automatically finds the polyline endpoint farthest from the starting point with the pipe segment line as the path as the main road, and numbers it in ascending order. Then it finds the intersection path closest to the farthest node, finds the farthest node from the intersection on the branch road, and numbers it in descending order until the node closest to the main road intersection on the branch road is reached. And so on, until all nodes are numbered;
[0016] Pipe segment marking: The tree-like pipe network topology generation system outputs the node number generated in the previous step to the worksheet. The user fills in the pipe diameter information in the pipe segment marking (consisting of pipe diameter and pipe segment length) according to the node number, and then imports it into the tree-like pipe network topology generation system. The tree-like pipe network topology generation system automatically picks up the length of each pipe segment and marks the pipe diameter and pipe segment length above the center of the pipe segment line.
[0017] Furthermore, the detailed process of generating a tree-like pipe network topology diagram is as follows:
[0018] Generate topology diagram: The tree-like pipe network topology diagram generation system generates a topology diagram by reading the node connection relationship of the pipe network plan layout diagram.
[0019] Adjust the topology map: Users can adjust the positions of a node and all subsequent nodes through specific operations to meet their drawing requirements.
[0020] Furthermore, the topology map node coordinates are output: the tree-like pipe network topology map generation system reads the adjusted topology map node coordinates, creates and writes them into a new worksheet, and the data is used for subsequent hydraulic calculations.
[0021] Furthermore, the planar pipe network layout drawing checks whether a pipe segment in the input drawing is drawn by a polyline; if a polyline refers to multiple pipe segments or a pipe segment is composed of multiple polylines, the planar pipe network layout drawing is judged to be unqualified.
[0022] Furthermore, before the node numbering and pipe section marking of the planar pipe network layout diagram are performed, the following steps are also included:
[0023] The starting node number when setting the node number;
[0024] Adjust the inspection accuracy of the plan layout, that is, pipe sections that are not connected to nodes outside the accuracy range will not be marked;
[0025] Set the radius, color and layer of the floor plan node numbers;
[0026] Set the height, color, and layer of the pipe segment dimension text.
[0027] Furthermore, the details of adjusting the topology map include:
[0028] Local re-optimization: In areas where topology nodes are concentrated or where multiple connections occur, click a node and then click the preceding pipe line to optimize the topology.
[0029] Modify topology map: used to create a topology map. Click a node and select the pipeline line immediately before the node to drag all nodes and pipelines after the node.
[0030] Set the radius, color, and layer of the topology map node number;
[0031] Set the height, color, and layer of the text inside the topology node circle;
[0032] Set the line width, color, and layer of the topology diagram pipe line;
[0033] Topological parameters: the minimum length of the topological graph used to represent the node connection relationship;
[0034] Integer Transformation: After checking this option, the mobile topology pipeline will be adjusted in integer multiples of the topology parameters.
[0035] Compared with the prior art, the present invention has the following beneficial effects:
[0036] By using CAD software to draw a planar network layout diagram based on basic water supply network data obtained through field surveys, and then performing node numbering and pipe segment labeling, a tree-like network topology diagram is generated and the node coordinates of the network topology diagram are output. This achieves the automation and precision design requirements for the drawing of tree-like network topology diagrams, node numbering of tree-like network planar layout diagrams, and pipe segment labeling in the design of rural drinking water supply projects. This solves the existing problems of manual node numbering, topology drawing, and pipe segment labeling in tree-like network topology diagrams, which are characterized by poor accuracy, low efficiency, and a lack of automated drawing and labeling. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 The figure is an overall flow chart of a method for generating a tree-like pipe network topology diagram based on CAD in an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to facilitate understanding by those skilled in the art, the present invention will be further described below with reference to embodiments and drawings. The contents mentioned in the embodiments are not intended to limit the present invention.
[0039] like Figure 1 As shown, this embodiment provides a method for generating a tree-like pipe network topology diagram based on CAD, comprising the steps of:
[0040] S1. Obtain basic data of water supply network through field survey;
[0041] S2. Draw a planar pipe network layout using CAD drawing software;
[0042] S3. Inputting the layout diagram into the tree-like pipe network topology diagram generation system;
[0043] S4. Numbering nodes and marking pipe sections through a tree-like pipe network topology generation system to generate a tree-like pipe network topology and output the coordinates of the pipe network topology nodes;
[0044] S5. Perform hydraulic calculations based on the basic data of the pipe network topology diagram.
[0045] Before the tree-like pipe network topology generation system performs node numbering and pipe segment marking on the planar pipe network layout diagram drawn by CAD drawing software, it is necessary to check the drawn planar pipe network layout diagram:
[0046] Find drawing errors in the plan (intersection points of two or more polylines that are very close to each other) and mark them with markers, determine whether there are drawing errors and modify them, and finally standardize the drawings into standard drawings that can be correctly recognized by the tree-like pipe network topology map generation system.
[0047] Detailed process of node numbering and pipe segment marking:
[0048] Generate node numbers: When the user clicks on the starting point, the tree-like pipe network topology generation system automatically finds the polyline endpoint farthest from the starting point with the pipe segment line as the path as the main road, and numbers it in ascending order. Then it finds the intersection path closest to the farthest node, finds the farthest node from the intersection on the branch road, and numbers it in descending order until the node closest to the main road intersection on the branch road is reached. And so on, until all nodes are numbered;
[0049] Pipe segment marking: The tree-like pipe network topology generation system outputs the node number generated in the previous step to the worksheet. The user fills in the pipe diameter information in the pipe segment marking (consisting of pipe diameter and pipe segment length) according to the node number, and then imports it into the tree-like pipe network topology generation system. The tree-like pipe network topology generation system automatically picks up the length of each pipe segment and marks the pipe diameter and pipe segment length above the center of the pipe segment line.
[0050] Detailed process of generating a tree-like pipe network topology diagram:
[0051] Generate topology diagram: The tree-like pipe network topology diagram generation system generates a topology diagram by reading the node connection relationship of the pipe network plan layout diagram.
[0052] Adjust the topology map: Users can adjust the positions of a node and all subsequent nodes through specific operations to meet their drawing requirements.
[0053] Output topology node coordinates: The tree-like pipe network topology generation system reads the adjusted topology node coordinates, creates and writes them into a new worksheet. This data is used for subsequent hydraulic calculations.
[0054] The planar pipe network layout check determines whether a pipe segment in the input drawing is drawn by a polyline; if a polyline refers to multiple pipe segments or a pipe segment is composed of multiple polylines, the planar pipe network layout is judged to be unqualified.
[0055] Before the node numbering and pipe section marking of the planar pipe network layout, the following steps are also included:
[0056] The starting node number when setting the node number;
[0057] Adjust the inspection accuracy of the plan layout, that is, pipe sections that are not connected to nodes outside the accuracy range will not be marked;
[0058] Set the radius, color and layer of the floor plan node numbers;
[0059] Set the height, color, and layer of the pipe segment dimension text.
[0060] The details of adjusting the topology map include:
[0061] Local re-optimization: In areas where topology nodes are concentrated or where multiple connections occur, click a node and then click the preceding pipe line to optimize the topology.
[0062] Modify topology map: used to create a topology map. Click a node and select the pipeline line immediately before the node to drag all nodes and pipelines after the node.
[0063] Set the radius, color, and layer of the topology map node number;
[0064] Set the height, color, and layer of the text inside the topology node circle;
[0065] Set the line width, color, and layer of the topology diagram pipe line;
[0066] Topological parameters: the minimum length of the topological graph used to represent the node connection relationship;
[0067] Integer Transformation: After checking this option, the mobile topology pipeline will be adjusted in integer multiples of the topology parameters.
[0068] Compared with the prior art, the present invention has the following beneficial effects:
[0069] By using CAD software to draw a planar network layout diagram based on basic water supply network data obtained through field surveys, and then performing node numbering and pipe segment labeling, a tree-like network topology diagram is generated and the node coordinates of the network topology diagram are output. This achieves the automation and precision design requirements for the drawing of tree-like network topology diagrams, node numbering of tree-like network planar layout diagrams, and pipe segment labeling in the design of rural drinking water supply projects. This solves the existing problems of manual node numbering, topology drawing, and pipe segment labeling in tree-like network topology diagrams, which are characterized by poor accuracy, low efficiency, and a lack of automated drawing and labeling.
[0070] The above describes in detail the CAD-based tree-like pipe network topology generation method provided by this application. The description of the specific embodiments is intended only to facilitate understanding of the method and its core concept. It should be noted that those skilled in the art may make various improvements and modifications to this application without departing from the principles of this application, and such improvements and modifications also fall within the scope of protection of the claims of this application.
Claims
1. A CAD-based tree-like pipe network topology generation method, characterized in that: Including steps: S1. Obtain basic data of water supply network through field survey; S2. Draw a planar pipe network layout using CAD drawing software; S3. Inputting the layout diagram into the tree-like pipe network topology diagram generation system; S4. Numbering nodes and marking pipe sections through a tree-like pipe network topology generation system to generate a tree-like pipe network topology and output the coordinates of the pipe network topology nodes; S5. Perform hydraulic calculations based on the basic data of the pipe network topology diagram.
2. The method for generating a tree-like pipe network topology diagram based on CAD according to claim 1, characterized in that: Before the tree-like pipe network topology generation system performs node numbering and pipe segment marking on the planar pipe network layout diagram drawn by CAD drawing software, it is necessary to check the drawn planar pipe network layout diagram: Look for drawing errors in the floor plan, determine if there are any drawing errors and make corrections, and ultimately standardize the drawings into drawings that can be correctly identified.
3. The method for generating a tree-like pipe network topology diagram based on CAD according to claim 2, characterized in that: Detailed process of node numbering and pipe segment marking: Generate node numbers: When the user clicks on the starting point, the tree-like pipe network topology generation system automatically finds the polyline endpoint farthest from the starting point with the pipe segment line as the path as the main road, and numbers it in ascending order. Then it finds the intersection path closest to the farthest node, finds the farthest node from the intersection on the branch road, and numbers it in descending order from the node to the node closest to the main road intersection on the branch road, and traverses one by one until all nodes are numbered; Pipe segment marking: The tree-like pipe network topology generation system outputs the generated node number to the worksheet. The user fills in the pipe diameter information in the pipe segment marking according to the node number, and then imports it into the tree-like pipe network topology generation system. The tree-like pipe network topology generation system picks up the length of each pipe segment and marks the pipe diameter and pipe segment length above the center of the pipe segment line.
4. The method for generating a tree-like pipe network topology diagram based on CAD according to claim 3, characterized in that: Detailed process of generating a tree-like pipe network topology diagram: Generate topology diagram: The tree-like pipe network topology diagram generation system reads the node connection relationship of the pipe network plan layout diagram; Adjust the topology: adjust the position of a node and all subsequent nodes.
5. The method for generating a tree-like pipe network topology diagram based on CAD according to claim 4, characterized in that: Output topology node coordinates: The tree-like pipe network topology generation system reads the adjusted topology node coordinates, creates and writes them into a new worksheet. This data is used for subsequent hydraulic calculations.
6. The method for generating a tree-like pipe network topology diagram based on CAD according to claim 5, characterized in that: The planar pipe network layout check determines whether a pipe segment in the input drawing is drawn by a polyline; if a polyline refers to multiple pipe segments or a pipe segment is composed of multiple polylines, the planar pipe network layout is judged to be unqualified.
7. The method for generating a tree-like pipe network topology diagram based on CAD according to claim 6, characterized in that: Before the node numbering and pipe section marking of the planar pipe network layout, the following steps are also included: The starting node number when setting the node number; Adjust the inspection accuracy of the plan layout, that is, pipe sections that are not connected to nodes outside the accuracy range will not be marked; Set the radius, color and layer of the floor plan node numbers; Set the height, color, and layer of the pipe segment dimension text.
8. The method for generating a tree-like pipe network topology diagram based on CAD according to claim 7, characterized in that: The details of adjusting the topology map include: Local re-optimization: In areas where topology nodes are concentrated or where multiple connections occur, click a node and then click the preceding pipe line to optimize the topology. Modify topology map: used to create a topology map. Click a node and select the pipeline line immediately before the node to drag all nodes and pipelines after the node. Set the radius, color, and layer of the topology map node number; Set the height, color, and layer of the text inside the topology node circle; Set the line width, color, and layer of the topology diagram pipe line; Topological parameters: the minimum length of the topological graph used to represent the node connection relationship; Integer Transformation: After checking this option, the mobile topology pipeline will be adjusted in integer multiples of the topology parameters.