A system for intelligently planning pipelines based on CAD drawings
Through the intelligent planning pipeline system, the three-dimensional image model is used to automatically adjust the pipeline direction, which solves the complex and time-consuming problem of drawing modification in CAD software, improves design efficiency and safety, and realizes intelligent and rapid modification.
Patent Information
- Application Number
- CN202410725200.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-06
AI Technical Summary
Modifying drawings in CAD software requires purely manual modifications, which cannot achieve intelligent and fast modifications, making the pipeline planning and design process complex and time-consuming.
Provides an intelligent planning pipeline system based on CAD drawings, including a CAD two-dimensional drawing input unit, a three-dimensional image conversion model, a coordinate range analysis unit, an obstacle data management unit, and an interference detection and avoidance unit. The three-dimensional image model is converted to generate a CAD-like two-dimensional dimensional line image, automatically adjust the pipeline direction to avoid obstacle conflicts, and provide guidance for label modification.
It improves the efficiency and accuracy of pipeline planning and design, reduces the risk of pipeline collision, realizes intelligent adjustment of pipeline directions, simplifies the modification process, saves a lot of workload, and ensures construction safety and project quality.
Smart Images

Figure CN118296685B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of CAD drawings, and in particular to a system for intelligently planning pipelines based on CAD drawings. Background Art
[0002] At present, in pipeline construction planning, CAD drawings are generally used for operation and construction. In the planning process, it is usually necessary to make multiple revisions and finalizations. Designers are required to conduct specific construction site surveys and measurements, and modify the drawings after a large number of calculations. Multiple revisions are usually required. For example, publication number CN114580057A discloses a BIM-based integrated pipeline corridor pipeline outlet design method, which collects corridor pipelines, pipeline planning, three-dimensional geophysical data, and intersecting corridor pipeline design data, and uses three-dimensional design software to convert basic data into three-dimensional models; preliminarily designs and builds pipeline outlet models for each pipeline specialty of the integrated pipeline corridor; coordinates and integrates outlet models of different pipeline specialties; each pipeline specialty verifies its own pipeline model; integrates the pipeline outlet model with external corridor structures, municipal pipelines, designed roads, geophysical pipelines, and intersecting corridor pipeline condition models; coordinates and verifies the pipeline outlet model with the external condition model; determines the final design plan; and outputs drawings. The present invention improves the efficiency and accuracy of pipeline outlet line position analysis, reduces pipeline collisions, and avoids engineering risks.
[0003] As shown in the above technology, the existing pipeline drawing design process requires a lot of field survey data to adjust the pipeline planning. When using CAD software to draw drawings, since CAD software is a mature and independent software, modifying the drawings in CAD software requires pure manual modification, and intelligent and fast modification cannot be achieved. Therefore, the entire pipeline planning and design process is relatively complicated and takes a lot of time. Summary of the invention
[0004] In view of the shortcomings of the prior art, the present invention provides a system for intelligently planning pipelines based on CAD drawings, which solves the problem that modifying drawings in CAD software requires pure manual modification and cannot achieve intelligent and fast modification. Therefore, the entire pipeline planning and design process is relatively complicated and takes a lot of time.
[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions: A system for intelligently planning pipelines based on CAD drawings, comprising:
[0006] CAD 2D drawing input unit, used to input CAD 2D drawings, or to supplement the missing data in CAD 2D drawings;
[0007] The 3D image conversion model is used to identify the input CAD 2D drawings, extract data to build a 3D image model, add the acquired annotation data, and prompt the missing data that affects the establishment of the 3D image to be manually supplemented and entered, and then generate a complete 3D image. The 3D image model can be used to convert and generate a CAD-like 2D line image;
[0008] Coordinate range analysis unit, used to establish coordinate axes and analyze 3D images to extract centerline coordinates A and outer contour range values ±X j ±Y j ±Z j , and considering the construction range requirements, add the construction range value ΔX outside the outer contour range value j , ΔY j , ΔZ j ;
[0009] The obstacle data management unit is used to input the space coordinate area B and space coordinate area C of the existing obstacles in the pipeline layout area detected on the spot and the obstacles occupied by the planned later construction areas;
[0010] The interference detection and avoidance unit checks whether the spatial coordinate area B and the spatial coordinate area C overlap with the coordinate range of the pipeline's three-dimensional image. If so, the centerline coordinate A of the pipeline is modified to adjust the pipeline to bypass the obstacle and generate two-way detour plans. The shorter plan is compared and determined as the final plan.
[0011] The two-dimensional image output unit is used to reconstruct the three-dimensional image of the pipeline according to the final plan, convert it into a line image imitating the CAD drawing, and add corresponding annotations.
[0012] Preferably, the three-dimensional image conversion model includes:
[0013] Line recognition module, used to recognize line information in CAD two-dimensional drawings;
[0014] Annotation parameter recognition module, used to recognize annotation parameters in CAD two-dimensional drawings;
[0015] The view classification module is used to classify graphics with different view angles in CAD two-dimensional drawings;
[0016] A three-dimensional image modeling module, used to build a three-dimensional image model using the recognized data;
[0017] The two-dimensional drawing generation module is used to convert the three-dimensional image model into a two-dimensional line drawing similar to CAD.
[0018] Preferably, the coordinate axis and range analysis unit specifically includes:
[0019] A coordinate axis establishment module, used to establish a coordinate axis in three-dimensional space;
[0020] A centerline coordinate extraction module, used for extracting centerline coordinates from a three-dimensional image;
[0021] Pipeline size analysis module, used to analyze the size parameters of the pipeline;
[0022] The construction scope calculation module is used to consider the construction scope requirements and calculate the scope value of the allowed construction.
[0023] Preferably, the obstacle data management unit specifically includes:
[0024] Field detection data entry module, used to enter the spatial coordinate data of obstacles detected in the field;
[0025] The post-construction data entry module is used to enter the spatial coordinate data of the facility building obstacles that are planned to be constructed later;
[0026] The obstacle 3D modeling module is used to establish a 3D model of the obstacle based on the input data.
[0027] Preferably, the interference detection and avoidance unit specifically includes:
[0028] The obstacle and pipeline comparison module is used to compare the three-dimensional model of the obstacle with the three-dimensional image of the pipeline;
[0029] Interference detection module, used to detect whether there is interference where obstacles overlap with the pipeline coordinate range;
[0030] An avoidance scheme generation module is used to generate avoidance schemes in two directions in the case of interference;
[0031] The scheme optimization and selection module is used to compare different avoidance schemes and select the one with the shortest path.
[0032] Preferably, the two-dimensional image output unit specifically includes:
[0033] The 3D image dimension reduction module is used to convert the 3D image of the final solution into a CAD-like 2D line image;
[0034] An annotation adding module, used for adding corresponding annotation information on the two-dimensional line image;
[0035] The CAD drawing modification module is used to provide modification and adjustment suggestions for the original CAD two-dimensional drawings based on the two-dimensional line images.
[0036] Preferably, the three-dimensional image conversion model working steps include:
[0037] S1CAD 2D drawing analysis:
[0038] S1.1 Read CAD file: Use CAD software library to read CAD file;
[0039] S1.2 Parsing layers and objects: Parsing layers, lines, annotations and other objects in CAD files;
[0040] S2 perspective classification:
[0041] S1 Identify perspective: Identify graphics at different perspectives by analyzing the view frame and perspective label information in the CAD drawing;
[0042] S2 classification storage: graphics from different perspectives are stored separately for subsequent processing;
[0043] Extraction of S3 lines and annotation data:
[0044] S3.1 Extract line data: traverse the graphics of each perspective and extract the starting point, end point, type and other attributes of the line;
[0045] S3.2 Extract annotation data: extract dimension annotation and text annotation data, including the annotation location, content, and associated lines or objects;
[0046] S4 3D reconstruction:
[0047] S4.1 Establish three-dimensional space: create a three-dimensional space for storing three-dimensional models;
[0048] S4.2 View matching: According to the view layout of the CAD drawing, the two-dimensional graphics of different view angles are matched to the corresponding positions in the three-dimensional space;
[0049] S4.3 Line projection: Project two-dimensional lines into three-dimensional space according to the viewing angle to form three-dimensional lines; for complex two-dimensional curves, use the least squares method or Bezier curve method to fit to generate smooth three-dimensional curves;
[0050] S4.4 Annotation mapping: Map the 2D annotations onto the 3D model to ensure that the annotations are associated with the corresponding 3D objects;
[0051] S5 Supplementary data:
[0052] S5.1 Check integrity: Check whether the 3D model is complete, including whether the lines are continuous and whether the annotations are complete;
[0053] S5.2 Prompt for additional data: If some images cannot be checked due to missing data, the system should prompt the user which data is missing and wait for the user to manually supplement and enter;
[0054] S5.3 User input: The user supplements the missing data through the graphical interface or data input according to the system prompts.
[0055] Preferably, the coordinate range analysis unit working steps include:
[0056] Establish a coordinate axis, extract the center line through the generated three-dimensional stereo image to obtain the center line coordinate A, the center line coordinate A is a number of points automatically extracted from the center line, and establish a set A = (A1, A2, ..., An), where Ai = (Xi, Yi, Zi), representing the three-dimensional coordinates of the i-th point;
[0057] Analyze the pipeline size and determine the coordinates of each point Ai (X i , Y i , Z i )The range of the two axial directions of the cross section is ±X j ±Y j ±Z j , and considering the construction scope requirements, increase the construction threshold ΔX j , ΔY j , ΔZ j , that is, the actual threshold generated is ±(X j +ΔX j )、±(Y j +ΔY j )、±(Z j +ΔZ j );
[0058] The calculation formula for pipeline safety range value is:
[0059] X Ai =X i ±(X j +ΔX j );
[0060] Y Ai =Y i ±(Y j +ΔY j );
[0061] Z Ai =Z i ±(Z j +ΔZ j );
[0062] Where X Ai , Y Ai , Z Ai Indicates the safe range value allowed for construction of coordinate point Ai on the XYZ axis.
[0063] Preferably, if the calculated center line coordinate Ai is on the Z axis, only the actual thresholds on the Y axis and the Z axis are calculated; if the center line coordinate Ai is on the Y axis and the Z axis, the actual thresholds on the other two axes are calculated similarly.
[0064] Preferably, the obstacle data management unit working steps include:
[0065] F1 Input of spatial coordinates of obstacles and facilities:
[0066] F1.1 Enter the spatial coordinate area B of the obstacle occupation area in the pipeline layout area detected on site, Bs={(X B1 , Y B1 , Z B1 ), (X B2 , Y B2 , Z B2 ),...,(X Bm , Y Bm , Z Bm )}, where m is the number of obstacle coordinate points and s is the number of obstacles;
[0067] F1.2 Enter the available spatial coordinates of the facility building obstacles that are planned to be constructed later, area C, C F ={(X C1 , Y C1 , Z C1 ), (C C2 , Y C2 , Z C2 ),...,(X CT , Y CT , Z CT )}, where T is the number of obstacle coordinate points and F is the number of obstacles;
[0068] F2 3D image comparison and interference judgment:
[0069] Check the spatial coordinate areas B and C to establish a three-dimensional image, extract their boundary coordinates, and compare the three-dimensional image coordinate range of the pipeline with the boundary coordinates of B and C to determine whether there is a coordinate range overlap;
[0070] F3 interference processing and bypassing solution selection:
[0071] F3.1 If there is overlap in the coordinate range, modify the centerline coordinate A of the pipeline, that is, adjust the pipeline to bypass the obstacle;
[0072] F3.2 There are two detour plans when bypassing the obstacle from both sides. Assume that the pipeline lengths of the two plans are L1 and L2 respectively, and the distance between two adjacent coordinate points on the same pipeline is:
[0073] ;
[0074] The pipeline lengths of the two schemes are:
[0075] ;
[0076] Compare L1 and L2, and select the solution corresponding to the minimum value of L1 and L2 as the final solution.
[0077] The present invention provides a system for intelligently planning pipelines based on CAD drawings. Compared with the prior art, it has the following beneficial effects:
[0078] 1. The system for intelligently planning pipelines based on CAD drawings realizes the accurate conversion of two-dimensional drawings into three-dimensional images through a three-dimensional image conversion model, making the analysis of the construction scope more intuitive and comprehensive. Based on the three-dimensional image, the interference analysis of the three-dimensional space coordinates of the possible obstacles within the construction scope is carried out, effectively avoiding the conflicts and problems that may be encountered during the construction process. At the same time, it is also convenient for intelligently adjusting the planned pipeline direction. The planned three-dimensional image is converted into a two-dimensional image that imitates the CAD drawing, and the modification items are clearly marked, providing clear and intuitive modification guidance for the staff. Through the above methods, the CAD software that cannot be directly controlled intelligently can realize the intelligent adjustment of its drawings in another way. It only needs to refer to the generated two-dimensional image to quickly modify the original drawing, which saves a lot of workload.
[0079] 2. The system based on the intelligent planning pipeline of CAD drawings and the three-dimensional image conversion model realize the efficient conversion from CAD two-dimensional drawings to three-dimensional models through a systematic method. This process not only improves the conversion efficiency, but also ensures the accuracy and integrity of the model. First, by accurately parsing the layers and objects of CAD drawings, a solid foundation is laid for three-dimensional reconstruction. Secondly, the perspective classification and storage strategy enable the orderly processing of graphics from different perspectives. In the three-dimensional reconstruction stage, the accurate mapping of two-dimensional information in three-dimensional space is ensured through line projection and annotation mapping. Finally, the data supplementation link effectively solves the problem of incomplete models and improves the quality of models. These steps together constitute the core of the three-dimensional image conversion model, providing a reliable and efficient solution for the conversion from two-dimensional to three-dimensional.
[0080] 3. The system for intelligently planning pipelines based on CAD drawings, the coordinate range analysis unit successfully determines the safe construction range for each coordinate point in different axial directions by accurately extracting the centerline coordinates of the three-dimensional image and combining it with pipeline size analysis. This method not only takes into account the original size of the pipeline, but also adds construction thresholds to ensure safety during the construction process. In particular, for the position of the centerline in different axial directions, this method can flexibly adjust the calculation strategy and only calculate the actual threshold of the relevant axis, further improving the calculation efficiency. Overall, these steps make the calculation of the construction range more accurate and comprehensive, provide a strong guarantee for construction safety, and at the same time optimize the calculation process and improve work efficiency.
[0081] 4. The obstacle data management unit of this system for intelligently planning pipelines based on CAD drawings effectively improves the efficiency and safety of pipeline layout through precise spatial coordinate input, 3D image comparison and interference judgment, interference processing and detour selection. First, by inputting the spatial coordinates of obstacles detected on site and planned for construction, an accurate data basis is provided for pipeline layout. Secondly, through 3D image comparison, potential conflicts between pipelines and obstacles can be discovered in time to avoid risks in subsequent construction. Finally, when conflicts are found, pipeline detour solutions can be intelligently selected, and the selection can be optimized based on pipeline length to ensure that the pipeline layout is both economical and safe. These steps not only improve the automation of pipeline layout, but also significantly improve engineering quality and construction efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] Figure 1 It is a system principle block diagram of the present invention;
[0083] Figure 2 It is a schematic diagram of the method flow of the present invention;
[0084] Figure 3 It is a three-dimensional coordinate schematic diagram of the present invention. DETAILED DESCRIPTION
[0085] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0086] See also Figure 1-Figure 3 , the present invention provides four technical solutions:
[0087] The first implementation method: a system for intelligently planning pipelines based on CAD drawings, comprising:
[0088] CAD 2D drawing input unit, used to input CAD 2D drawings, or to supplement the missing data in CAD 2D drawings;
[0089] The 3D image conversion model is used to identify the input CAD 2D drawings, extract data to build a 3D image model, add the acquired annotation data, and prompt the missing data that affects the establishment of the 3D image to be manually supplemented and entered, and then generate a complete 3D image. The 3D image model can be used to convert and generate a CAD-like 2D line image;
[0090] The 3D image conversion model includes:
[0091] Line recognition module, used to recognize line information in CAD two-dimensional drawings;
[0092] Annotation parameter recognition module, used to recognize annotation parameters in CAD two-dimensional drawings;
[0093] The view classification module is used to classify graphics with different view angles in CAD two-dimensional drawings;
[0094] A three-dimensional image modeling module, used to build a three-dimensional image model using the recognized data;
[0095] The two-dimensional drawing generation module is used to convert the three-dimensional image model into a two-dimensional line drawing similar to CAD.
[0096] Coordinate range analysis unit, used to establish coordinate axes and analyze 3D images to extract centerline coordinates A and outer contour range values ±X j ±Y j ±Z j , and considering the construction range requirements, add the construction range value ΔX outside the outer contour range value j , ΔY j , ΔZ j ;
[0097] The coordinate axis and range analysis unit specifically includes:
[0098] A coordinate axis establishment module, used to establish a coordinate axis in three-dimensional space;
[0099] A centerline coordinate extraction module, used for extracting centerline coordinates from a three-dimensional image;
[0100] Pipeline size analysis module, used to analyze the size parameters of the pipeline;
[0101] The construction scope calculation module is used to consider the construction scope requirements and calculate the scope value of the allowed construction.
[0102] The obstacle data management unit is used to input the space coordinate area B and space coordinate area C of the existing obstacles in the pipeline layout area detected on the spot and the obstacles occupied by the planned later construction;
[0103] The obstacle data management unit specifically includes:
[0104] Field detection data entry module, used to enter the spatial coordinate data of obstacles detected in the field;
[0105] The post-construction data entry module is used to enter the spatial coordinate data of the facility building obstacles that are planned to be constructed later;
[0106] The obstacle 3D modeling module is used to establish a 3D model of the obstacle based on the input data.
[0107] The interference detection and avoidance unit checks whether the spatial coordinate area B and the spatial coordinate area C overlap with the coordinate range of the pipeline's three-dimensional image. If so, the centerline coordinate A of the pipeline is modified to adjust the pipeline to bypass the obstacle and generate two-way detour plans. The shorter plan is compared and determined as the final plan.
[0108] The interference detection and avoidance unit specifically includes:
[0109] The obstacle and pipeline comparison module is used to compare the three-dimensional model of the obstacle with the three-dimensional image of the pipeline;
[0110] Interference detection module, used to detect whether there is interference where obstacles overlap with the pipeline coordinate range;
[0111] An avoidance scheme generation module is used to generate avoidance schemes in two directions in the case of interference;
[0112] The scheme optimization and selection module is used to compare different avoidance schemes and select the one with the shortest path.
[0113] The two-dimensional image output unit is used to reconstruct the three-dimensional image of the pipeline according to the final plan, convert it into a line image imitating the CAD drawing, and add corresponding annotations.
[0114] The two-dimensional image output unit specifically includes:
[0115] The 3D image dimension reduction module is used to convert the 3D image of the final solution into a CAD-like 2D line image;
[0116] An annotation adding module, used for adding corresponding annotation information on the two-dimensional line image;
[0117] The CAD drawing modification module is used to provide modification and adjustment suggestions for the original CAD two-dimensional drawings based on the two-dimensional line images.
[0118] Through the 3D image conversion model, the accurate conversion of 2D drawings into 3D images is achieved, making the analysis of the construction scope more intuitive and comprehensive. Based on the 3D image, the interference analysis of the 3D space coordinates of the possible obstacles within the construction scope is carried out, which effectively avoids the conflicts and problems that may be encountered during the construction process. At the same time, it is also convenient for the intelligent adjustment of the planned pipeline direction. The planned 3D image is converted into a 2D image that simulates the CAD drawing, and the modification items are clearly marked, providing the staff with clear and intuitive modification guidance. Through the above methods, the CAD software that cannot be directly controlled intelligently can realize the intelligent adjustment of its drawings in another way. It only needs to refer to the generated 2D image to quickly modify the original drawing, which saves a lot of work.
[0119] The second implementation mode is mainly different from the first implementation mode in that the three-dimensional image conversion model working steps include:
[0120] S1CAD 2D drawing analysis:
[0121] S1.1 Read CAD files: Use CAD software libraries (such as AutoCAD API, OpenCASCADE, etc.) to read CAD files (such as DWG, DXF formats);
[0122] S1.2 Parsing layers and objects: Parsing layers, lines (including straight lines, arcs, spline curves, etc.), annotations (such as dimension annotations, text annotations, etc.) and other objects (such as circles, ellipses, polygons, etc.) in CAD files;
[0123] S2 perspective classification:
[0124] S1 Identify perspective: Identify graphics at different perspectives by analyzing the view frame, perspective label and other information in the CAD drawing;
[0125] S2 classification storage: graphics from different perspectives are stored separately for subsequent processing;
[0126] Extraction of S3 lines and annotation data:
[0127] S3.1 Extract line data: traverse the graphics of each perspective and extract the starting point, end point, type (straight line, arc, etc.) and other attributes of the line;
[0128] S3.2 Extract annotation data: extract dimension annotation, text annotation and other data, including the annotation location, content, associated lines or objects, etc.;
[0129] S4 3D reconstruction:
[0130] S4.1 Establish three-dimensional space: create a three-dimensional space for storing three-dimensional models;
[0131] S4.2 View matching: According to the view layout of the CAD drawing, the two-dimensional graphics of different view angles are matched to the corresponding positions in the three-dimensional space;
[0132] S4.3 Line projection: Project two-dimensional lines into three-dimensional space according to the viewing angle to form three-dimensional lines; for complex two-dimensional curves, use the least squares method or Bezier curve method to fit to generate smooth three-dimensional curves;
[0133] S4.4 Annotation mapping: Map the 2D annotations onto the 3D model to ensure that the annotations are associated with the corresponding 3D objects;
[0134] S5 Data Supplement:
[0135] S5.1 Check integrity: Check whether the 3D model is complete, including whether the lines are continuous and whether the annotations are complete;
[0136] S5.2 Prompt for additional data: If some images cannot be checked due to lack of data, the system should prompt the user which data is missing and wait for the user to manually enter additional data;
[0137] S5.3 User input: The user supplements the missing data through the graphical interface or data input according to the system prompts.
[0138] The least squares method is a commonly used mathematical optimization method for estimating parameter values in a linear equation system with unknown parameters. This method determines the optimal solution for the parameters by minimizing the sum of squares of the residuals of all measured data. In the least squares method, a linear model is established with unknown parameters. Then, by comparing the model with the actual observed data, the residual (error difference) between each observation and the model prediction can be calculated. The goal of the least squares method is to minimize the sum of squares of all residuals by adjusting the parameter values of the model to obtain the best parameter estimate. The least squares method is applicable to many fields, such as curve fitting, regression analysis, signal processing, and statistics. It is a simple and effective mathematical tool that can be used to process data with measurement errors and find the best fitting model and parameters.
[0139] Bezier curve is a common curve drawing method in modern computer graphics, also known as Bezier curve or Bezier curve. Bezier curve can be used to describe smooth curves and surfaces, and is often used in drawing fonts, animation, graphic design and other fields.
[0140] The 3D image conversion model achieves efficient conversion from CAD 2D drawings to 3D models through a systematic approach. This process not only improves conversion efficiency, but also ensures the accuracy and integrity of the model. First, by accurately parsing the layers and objects of CAD drawings, a solid foundation is laid for 3D reconstruction. Second, the perspective classification and storage strategy enables graphics from different perspectives to be processed in an orderly manner. In the 3D reconstruction stage, line projection and annotation mapping ensure accurate mapping of 2D information in 3D space. Finally, the data supplementation link effectively solves the problem of incomplete models and improves model quality. These steps together constitute the core of the 3D image conversion model, providing a reliable and efficient solution for the conversion from 2D to 3D.
[0141] The third implementation mode is mainly different from the second implementation mode in that the coordinate range analysis unit working steps include:
[0142] Establish a coordinate axis, extract the center line from the generated three-dimensional image to obtain the center line coordinate A, the center line coordinate A is a number of points extracted from the center line at equal axial spacing L, and establish a set A = (A1, A2, ..., An), where Ai = (Xi, Yi, Zi), representing the three-dimensional coordinates of the i-th point;
[0143] Analyze the pipeline size and determine the coordinates of each point Ai (X i , Y i , Z i )The range of the two axial directions of the cross section is ±X j ±Y j ±Z j , and considering the construction scope requirements, increase the construction threshold ΔX j , ΔY j , ΔZ j , that is, the actual threshold generated is ±(X j +ΔX j )、±(Y j +ΔY j )、±(Z j +ΔZ j );
[0144] The calculation formula for pipeline safety range value is:
[0145] X Ai =X i ±(X j +ΔX j );
[0146] Y Ai =Y i ±(Y j +ΔY j );
[0147] Z Ai =Z i ±(Z j +ΔZ j );
[0148] Where X Ai , Y Ai , Z Ai Indicates the safe range value allowed for construction of coordinate point Ai on the XYZ axis.
[0149] If the calculated center line coordinate Ai is on the Z axis upward, only the actual thresholds on the Y axis and the Z axis are calculated; if the center line coordinate Ai is on the Y axis and the Z axis, the actual thresholds on the other two axes are calculated in the same way.
[0150] The coordinate range analysis unit successfully determined the safe construction range for each coordinate point in different axial directions by accurately extracting the centerline coordinates of the three-dimensional image and combining it with pipeline size analysis. This method not only takes into account the original size of the pipeline, but also adds construction thresholds to ensure safety during the construction process. In particular, for the position of the centerline in different axial directions, this method can flexibly adjust the calculation strategy and only calculate the actual threshold of the relevant axis, further improving the calculation efficiency. Overall, these steps make the calculation of the construction range more accurate and comprehensive, providing a strong guarantee for construction safety, while optimizing the calculation process and improving work efficiency.
[0151] The fourth implementation mode mainly differs from the third implementation mode in that the obstacle data management unit comprises the following working steps:
[0152] F1 Input of spatial coordinates of obstacles and facilities:
[0153] F1.1 Enter the spatial coordinate area B of the obstacle occupation area in the pipeline layout area detected on site, Bs={(X B1 , Y B1 , Z B1 ), (X B2 , Y B2 , Z B2 ),...,(X Bm , Y Bm , Z Bm )}, where m is the number of obstacle coordinate points and s is the number of obstacles;
[0154] F1.2 Enter the available spatial coordinates of the facility building obstacles that are planned to be constructed later, area C, C F ={(X C1 , Y C1 , Z C1 ), (C C2 , Y C2 , Z C2 ),...,(X CT , Y CT , Z CT )}, where T is the number of obstacle coordinate points and F is the number of obstacles;
[0155] F2 3D image comparison and interference judgment:
[0156] Check the spatial coordinate areas B and C to establish a three-dimensional image, extract their boundary coordinates, and compare the three-dimensional image coordinate range of the pipeline with the boundary coordinates of B and C to determine whether there is a coordinate range overlap;
[0157] F3 interference processing and bypassing solution selection:
[0158] F3.1 If there is overlap in the coordinate range, modify the centerline coordinate A of the pipeline, that is, adjust the pipeline to bypass the obstacle;
[0159] F3.2 There are two detour plans when bypassing the obstacle from both sides. Assume that the pipeline lengths of the two plans are L1 and L2 respectively, and the distance between two adjacent coordinate points on the same pipeline is:
[0160] ;
[0161] The pipeline lengths of the two schemes are:
[0162] ;
[0163] Compare L1 and L2, and select the solution corresponding to the minimum value of L1 and L2 as the final solution.
[0164] The obstacle data management unit effectively improves the efficiency and safety of pipeline layout through precise spatial coordinate input, 3D image comparison and interference judgment, interference processing and detour scheme selection. First, by inputting the spatial coordinates of obstacles detected on site and planned construction, it provides an accurate data basis for pipeline layout. Second, through 3D image comparison, it can timely detect potential conflicts between pipelines and obstacles to avoid risks in subsequent construction. Finally, when conflicts are found, it can intelligently select pipeline detour schemes and optimize the selection based on pipeline length to ensure that pipeline layout is both economical and safe. These steps not only improve the automation of pipeline layout, but also significantly improve engineering quality and construction efficiency.
[0165] Meanwhile, the contents not described in detail in this specification belong to the prior art known to those skilled in the art.
[0166] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0167] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A system for intelligently planning pipelines based on CAD drawings, characterized by: include: CAD 2D drawing input unit, used to input CAD 2D drawings, or to supplement the missing data in CAD 2D drawings; The 3D image conversion model is used to identify the input CAD 2D drawings, extract data to build a 3D image model, add the acquired annotation data, and prompt the missing data that affects the establishment of the 3D image to be manually supplemented and entered, and then generate a complete 3D image. The 3D image model can be used to convert and generate a CAD-like 2D line image; Coordinate range analysis unit, used to establish coordinate axes and analyze 3D images to extract centerline coordinates A and outer contour range values ±X j ±Y j ±Z j , and considering the construction range requirements, add the construction range value ΔX outside the outer contour range value j , ΔY j , ΔZ j ; The obstacle data management unit is used to input the space coordinate area B and space coordinate area C of the existing obstacles in the pipeline layout area detected on the spot and the obstacles occupied by the planned later construction; The interference detection and avoidance unit checks whether the spatial coordinate area B and the spatial coordinate area C overlap with the coordinate range of the pipeline's three-dimensional image. If so, the centerline coordinate A of the pipeline is modified to adjust the pipeline to bypass the obstacle and generate two-way detour plans. The shorter plan is compared and determined as the final plan. The two-dimensional image output unit is used to reconstruct the three-dimensional image of the pipeline according to the final plan, convert it into a line image imitating the CAD drawing, and add corresponding annotations.
2. The system for intelligently planning pipelines based on CAD drawings according to claim 1, characterized in that: The 3D image conversion model includes: Line recognition module, used to recognize line information in CAD two-dimensional drawings; Annotation parameter recognition module, used to recognize annotation parameters in CAD two-dimensional drawings; The view classification module is used to classify graphics with different view angles in CAD two-dimensional drawings; A three-dimensional image modeling module, used to build a three-dimensional image model using the recognized data; The two-dimensional drawing generation module is used to convert the three-dimensional image model into a two-dimensional line drawing similar to CAD.
3. The system for intelligently planning pipelines based on CAD drawings according to claim 1, characterized in that: The coordinate axis and range analysis unit specifically includes: A coordinate axis establishment module, used to establish a coordinate axis in three-dimensional space; A centerline coordinate extraction module, used to extract centerline coordinates from a three-dimensional image; Pipeline size analysis module, used to analyze the size parameters of the pipeline; The construction scope calculation module is used to consider the construction scope requirements and calculate the scope value of the allowed construction.
4. The system for intelligently planning pipelines based on CAD drawings according to claim 1, characterized in that: The obstacle data management unit specifically includes: Field detection data entry module, used to enter the spatial coordinate data of obstacles detected in the field; The post-construction data entry module is used to enter the spatial coordinate data of the facility building obstacles that are planned to be constructed later; The obstacle 3D modeling module is used to establish a 3D model of the obstacle based on the input data.
5. The system for intelligently planning pipelines based on CAD drawings according to claim 1, characterized in that: The interference detection and avoidance unit specifically includes: The obstacle and pipeline comparison module is used to compare the three-dimensional model of the obstacle with the three-dimensional image of the pipeline; Interference detection module, used to detect whether there is interference where obstacles overlap with the pipeline coordinate range; An avoidance scheme generation module is used to generate avoidance schemes in two directions in the case of interference; The scheme optimization and selection module is used to compare different avoidance schemes and select the one with the shortest path.
6. The system for intelligently planning pipelines based on CAD drawings according to claim 1, characterized in that: The two-dimensional image output unit specifically includes: The 3D image dimension reduction module is used to convert the 3D image of the final solution into a CAD-like 2D line image; An annotation adding module, used for adding corresponding annotation information on the two-dimensional line image; The CAD drawing modification module is used to provide modification and adjustment suggestions for the original CAD two-dimensional drawings based on the two-dimensional line images.
7. The system for intelligently planning pipelines based on CAD drawings according to claim 1, characterized in that: The three-dimensional image conversion model working steps include: S1CAD 2D drawing analysis: S1.1 Read CAD file: Use CAD software library to read CAD file; S1.2 Parsing layers and objects: Parsing layers, lines, annotations and other objects in CAD files; S2 perspective classification: S1 Identify perspective: Identify graphics at different perspectives by analyzing the view frame and perspective label information in the CAD drawing; S2 classification storage: graphics from different perspectives are stored separately for subsequent processing; Extraction of S3 lines and annotation data: S3.1 Extract line data: traverse the graphics of each perspective and extract the starting point, end point, type and other attributes of the line; S3.2 Extract annotation data: extract dimension annotation and text annotation data, including the annotation location, content, and associated lines or objects; S4 3D reconstruction: S4.1 Establish three-dimensional space: create a three-dimensional space for storing three-dimensional models; S4.2 View matching: According to the view layout of the CAD drawing, the two-dimensional graphics of different view angles are matched to the corresponding positions in the three-dimensional space; S4.3 Line projection: Project two-dimensional lines into three-dimensional space according to the viewing angle to form three-dimensional lines; for complex two-dimensional curves, use the least squares method or Bezier curve method to fit to generate smooth three-dimensional curves; S4.4 Annotation mapping: Map the 2D annotations onto the 3D model to ensure that the annotations are associated with the corresponding 3D objects; S5 Supplementary data: S5.1 Check integrity: Check whether the 3D model is complete, including whether the lines are continuous and whether the annotations are complete; S5.2 Prompt for additional data: If some images cannot be checked due to missing data, the system should prompt the user which data is missing and wait for the user to manually supplement and enter; S5.3 User input: The user supplements the missing data through the graphical interface or data input according to the system prompts.
8. The system for intelligently planning pipelines based on CAD drawings according to claim 1, characterized in that: The coordinate range analysis unit working steps include: Establish a coordinate axis, extract the center line through the generated three-dimensional stereo image to obtain the center line coordinate A, the center line coordinate A is a number of points automatically extracted from the center line, and establish a set A = (A1, A2, ..., An), where Ai = (Xi, Yi, Zi), representing the three-dimensional coordinates of the i-th point; Analyze the pipeline size and determine the coordinates of each point Ai (X i , Y i , Z i )The range of the two axial directions of the cross section is ±X j ±Y j ±Z j , and considering the construction scope requirements, increase the construction threshold ΔX j , ΔY j , ΔZ j , that is, the actual threshold generated is ±(X j +ΔX j )、±(Y j +ΔY j )、±(Z j +ΔZ j ); The calculation formula for pipeline safety range value is: X Ai =X i ±(X j +ΔX j ); Y Ai =Y i ±(Y j +ΔY j ) With Ai =Z i ±(With j +ΔZ j ); Where X Ai , Y Ai , Z Ai Indicates the safe range value allowed for construction of coordinate point Ai on the XYZ axis.
9. The system for intelligently planning pipelines based on CAD drawings according to claim 8, characterized in that: If the calculated center line coordinate Ai is on the Z axis upward, only the actual thresholds on the Y axis and the Z axis are calculated; if the center line coordinate Ai is on the Y axis and the Z axis, the actual thresholds on the other two axes are calculated in the same way.
10. The system for intelligently planning pipelines based on CAD drawings according to claim 8, characterized in that: The obstacle data management unit working steps include: F1 Input of spatial coordinates of obstacles and facilities: F1.1 Enter the spatial coordinate area B of the obstacle occupation area in the pipeline layout area detected on site, Bs={(X B1 , Y B1 , Z B1 ), (X B2 , Y B2 , Z B2 ),...,(X Bm , Y Bm , Z Bm )}, where m is the number of obstacle coordinate points and s is the number of obstacles; F1.2 Input the available spatial coordinates of the facility building obstacles that are planned to be constructed later, area C, C F ={(X C1 , Y C1 , Z C1 ), (C C2 , Y C2 , Z C2 ),...,(X CT , Y CT , Z CT )}, where T is the number of obstacle coordinate points and F is the number of obstacles; F2 3D image comparison and interference judgment: Check the spatial coordinate areas B and C to establish a three-dimensional image, extract their boundary coordinates, and compare the three-dimensional image coordinate range of the pipeline with the boundary coordinates of B and C to determine whether there is a coordinate range overlap; F3 interference processing and bypassing solution selection: F3.1 If there is overlap in the coordinate range, modify the centerline coordinate A of the pipeline, that is, adjust the pipeline to bypass the obstacle; F3.2 There are two detour plans when bypassing the obstacle from both sides. Assume that the pipeline lengths of the two plans are L1 and L2 respectively, and the distance between two adjacent coordinate points on the same pipeline is: ; The pipeline lengths of the two schemes are: ; Compare L1 and L2, and select the solution corresponding to the minimum value of L1 and L2 as the final solution.
