Method for automatically generating two-dimensional pipeline and instrument flow chart based on three-dimensional pipeline model

By automatically calculating and supplementing branch pipelines in the three-dimensional pipeline model, drawing two-dimensional drawings, and generating files containing attribute information, the problem of low accuracy of two-dimensional drawings in the existing technology is solved, and the generation of intelligent drawings is realized, which improves the Operation and maintenance support capabilities.

CN119228941APending Publication Date: 2024-12-31SINOPEC NINGBO ENG +2
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310796155.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

When the prior art converts the three-dimensional pipeline model into two-dimensional pipeline drawings, it is easy to lead to branch loss and node position errors, resulting in a decrease in the accuracy of the two-dimensional drawings, and it is impossible to generate intelligent drawings with attribute information.

Method used

By selecting the main pipeline model in the three-dimensional pipeline model, automatically calculate and supplement the branch pipeline, form a branch pipeline relationship list, draw it to the two-dimensional drawing according to the preset proportion, and generate an xml or json file to contain attribute information, and generate it using intelligent PID software Smart UID drawings.

Benefits of technology

The drawing accuracy of two-dimensional drawings is improved, pipeline loss is avoided, and intelligent drawings with attribute information are generated, meeting the owner's later operation and maintenance needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119228941A_ABST
    Figure CN119228941A_ABST
Patent Text Reader

Abstract

The invention relates to a method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model, and the method comprises the steps: taking a main pipeline model which is selected from the three-dimensional pipeline model and is associated with a to-be-generated two-dimensional drawing as a to-be-processed main pipeline model, and obtaining a branch pipeline initial set associated with the to-be-processed main pipeline model; and taking a set obtained by processing after judging the pipeline information integrity condition as a final branch pipeline set, and obtaining a main pipeline-branch pipeline relation list based on an association relation between the main pipeline model to be processed and the branch pipelines in the final branch pipeline set, and drawing the information of each branch pipeline and the pipe fitting information on the two-dimensional drawing according to the relation list and the preset drawing proportion of the two-dimensional drawing, and circularly executing according to the pipeline sequence and the logic relation until all the branch pipelines of the final branch pipeline set are drawn on the two-dimensional drawing. And the drawn two-dimensional drawing is used as the final two-dimensional drawing, so that the drawing accuracy of the two-dimensional drawing is improved, and pipeline loss is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of engineering drawing processing, and in particular to a method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model. Background Art

[0002] Engineering drawings are important data for engineering projects and are crucial to ensure the normal development of engineering projects. In existing engineering drawings, utility pipeline and instrument flow charts are mainly drawn manually by comparing 3D pipeline models to 2D pipeline drawings, so as to submit the owner's completion data for the owner's later factory operation and maintenance.

[0003] However, the existing method of generating two-dimensional pipeline drawings from three-dimensional pipeline models has shortcomings: when the three-dimensional pipeline model is manually converted into a two-dimensional pipeline drawing, the two-dimensional drawing branches are lost and the branch pipeline node positions are incorrect, resulting in a decrease in the accuracy of the drawn two-dimensional drawings. In addition, it is limited to drawing the surface information of the two-dimensional pipeline drawing, and it is also impossible to generate intelligent UID drawings with attribute information such as grade, flow direction, temperature and pressure. The process personnel need to perform secondary drawing based on the two-dimensional pipeline drawing to import the above attribute information before the intelligent UID drawing can be generated. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model to improve the drawing accuracy of the two-dimensional drawings in view of the above-mentioned prior art.

[0005] The technical solution adopted by the present invention to solve the above technical problems is: a method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model, characterized in that it includes the following steps:

[0006] Step 1, selecting a main pipeline model located in the three-dimensional pipeline model and associated with the two-dimensional drawing to be generated, and using the selected main pipeline model as the main pipeline model to be processed;

[0007] Step 2, automatically calculating all branch pipelines that are of the same medium and associated with the main pipeline model to be processed in the three-dimensional pipeline model, and taking the set formed by all the branch pipelines as the initial set of branch pipelines;

[0008] Step 3: determine whether the branch pipeline information in the initial set of branch pipelines is complete:

[0009] When all branch pipeline information is complete, the initial set of branch pipelines is used as the final set of branch pipelines, and the process proceeds to step 4; otherwise, all missing branch pipelines are selected in the three-dimensional pipeline model, and all selected branch pipelines are added to the initial set of branch pipelines to form the final set of branch pipelines, and the process proceeds to step 4;

[0010] Step 4, based on the association relationship between the main pipeline model to be processed and each branch pipeline in the final set of branch pipelines, a main pipeline-branch pipeline relationship list sorted in the order of association relationship is obtained; wherein the main pipeline-branch pipeline relationship list contains the logical connection relationship between the multi-level branch pipelines and the secondary branch connection relationship between the branch pipelines;

[0011] Step 5: according to the obtained main pipeline-branch pipeline relationship list and the preset drawing scale of the two-dimensional drawing, draw the information of each branch pipeline and the pipe fittings on the two-dimensional drawing;

[0012] Step 6, according to the sequence and logical relationship of the pipelines, loop through steps 4 and 5 until all branch pipelines of the final set of branch pipelines are drawn on the two-dimensional drawing, and the drawn two-dimensional drawing is used as the final two-dimensional drawing.

[0013] Improved, in the method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model, the pipe fitting attribute information of the pipe fitting information includes the drawing branch length, spacing and font size of the pipe fitting on the two-dimensional drawing.

[0014] Furthermore, in the method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model, the pipeline information includes pipeline size, pipeline grade and flow direction.

[0015] As a further improvement, in the method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model, in step 5, the pipe fitting symbols of each branch pipeline and pipe fitting information are drawn onto the two-dimensional drawing with their respective corresponding graphic coordinates and graphic directions.

[0016] As a further improvement, in the method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model, the two-dimensional drawing is a CAD drawing.

[0017] On the basis of automatically generating two-dimensional pipeline drawings, in order to further automatically generate instrument flow charts, further improvements are made. In the method for automatically generating two-dimensional pipeline and instrument flow charts based on three-dimensional pipeline models, after using the drawn two-dimensional drawings as the final two-dimensional drawings, it also includes: generating xml files or json files and other files that can carry relevant attribute information according to the topological relationship, graphic coordinates and pipeline and pipe fitting attribute information of the main pipeline and each branch pipeline in the two-dimensional drawing.

[0018] Furthermore, in the method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model, the pipeline and pipe fitting attribute information includes process parameters, pipeline flow direction, OPC information and insulation information.

[0019] Improved, in the present invention, the method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model further includes:

[0020] Step S1, calling and reading a file that can carry relevant attribute information in the intelligent PID drawing software, obtaining the attributes in the file that can carry relevant attribute information and the path information corresponding to the pipe legend symbol;

[0021] Step S2, determining whether the obtained pipe legend symbol is missing:

[0022] When a pipe legend symbol is missing, an error message indicating that the pipe is missing is given; otherwise, the file that can carry relevant attribute information is continued to be read and the process goes to step S3;

[0023] Step S3, obtaining pipeline topology, graphic coordinates, and pipeline and pipe fitting attribute information according to the read file information that can carry relevant attribute information;

[0024] Step S4, generating a smart UID based on the acquired pipeline topology relationship and pipeline and pipe fitting attribute information.

[0025] Compared with the prior art, the advantages of the present invention are:

[0026] Firstly, the method of the invention for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model takes the main pipeline model associated with the to-be-generated two-dimensional drawing selected in the three-dimensional pipeline model as the to-be-processed main pipeline model, and obtains an initial set of branch pipelines associated with the to-be-processed main pipeline model, and takes the set obtained after judging the completeness of the pipeline information as the final set of branch pipelines, and obtains a main pipeline-branch pipeline relationship list based on the relationship between the to-be-processed main pipeline model and the branch pipelines in the final set of branch pipelines, and draws each branch pipeline and pipe fitting information onto the two-dimensional drawing according to the relationship list and the preset drawing ratio of the two-dimensional drawing, and then executes the loop according to the pipeline sequence and logical relationship until all branch pipelines of the final set of branch pipelines are drawn onto the two-dimensional drawing, and the drawn two-dimensional drawing is taken as the final two-dimensional drawing, so as to improve the drawing accuracy of the two-dimensional drawing and avoid pipeline loss.

[0027] Secondly, the method of automatically generating two-dimensional pipeline and instrument flow charts based on three-dimensional pipeline models of the invention will also generate xml files or json files and other files that can carry relevant attribute information according to the topological relationship, graphic coordinates and pipeline and pipe fitting attribute information of the main pipeline and each branch pipeline in the automatically generated two-dimensional drawing, and then use the intelligent PID drawing software to call and read the file that can carry relevant attribute information, and when there is no missing pipe fitting legend symbol, obtain the pipeline topological relationship, graphic coordinates and pipeline and pipe fitting attribute information, and generate an intelligent UID based on the obtained pipeline topological relationship, graphic coordinates and pipeline and pipe fitting attribute information, so as to further automatically generate an instrument flow chart based on the automatic generation of the two-dimensional pipeline drawing by the three-dimensional pipeline model. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A schematic flow chart of a method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model in an embodiment of the present invention;

[0029] Figure 2 The figure is a schematic diagram of the generation process of the instrument flow chart in the embodiment of the present invention. DETAILED DESCRIPTION

[0030] The present invention is further described in detail below with reference to the accompanying drawings.

[0031] This embodiment provides a method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model. Figure 1 As shown, the method of automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model in this embodiment includes the following steps:

[0032] Step 1, selecting a main pipeline model located in the three-dimensional pipeline model and associated with the two-dimensional drawing to be generated, and using the selected main pipeline model as the main pipeline model to be processed;

[0033] Step 2, automatically calculating all branch pipelines that are of the same medium and associated with the main pipeline model to be processed in the three-dimensional pipeline model, and taking the set formed by all the branch pipelines as the initial set of branch pipelines;

[0034] Step 3: determine whether the branch pipeline information in the initial set of branch pipelines is complete:

[0035] When all branch pipeline information is complete, the initial set of branch pipelines is used as the final set of branch pipelines, and the process proceeds to step 4; otherwise, all missing branch pipelines are selected in the three-dimensional pipeline model, and all selected branch pipelines are added to the initial set of branch pipelines to form the final set of branch pipelines, and the process proceeds to step 4;

[0036] Step 4, based on the association relationship between the main pipeline model to be processed and each branch pipeline in the final set of branch pipelines, a main pipeline-branch pipeline relationship list sorted in the order of association relationship is obtained; wherein the main pipeline-branch pipeline relationship list contains the logical connection relationship between the multi-level branch pipelines and the secondary branch connection relationship between each branch pipeline; specifically, in this embodiment, the logical connection relationship here includes the logical connection relationship between the first-level main pipeline and the branch pipeline; the secondary branch connection relationship is the connection relationship between the second-level branch pipeline and the subsequent branch pipelines at all levels;

[0037] Step 5, according to the obtained main pipeline-branch pipeline relationship list, and according to the preset drawing scale of the two-dimensional drawing, draw each branch pipeline information and pipe fitting information on the two-dimensional drawing; wherein the pipe fitting information includes pipe fitting symbols and pipe fitting attribute information, and the pipe fitting attribute information of the pipe fitting information includes the drawing branch length, spacing and font size of the pipe fitting on the two-dimensional drawing; for example, the preset drawing scale here is the drawing length ratio required to meet the A3 drawing; the two-dimensional drawing is a CAD drawing; the pipeline information includes pipeline size, pipeline grade and flow direction;

[0038] Step 6, according to the sequence and logical relationship of the pipelines, loop through steps 4 and 5 until all branch pipelines of the final set of branch pipelines are drawn on the two-dimensional drawing, and the drawn two-dimensional drawing is used as the final two-dimensional drawing.

[0039] Specifically in this embodiment, in step 5, the pipe fitting symbols of each branch pipeline and pipe fitting information are drawn on the above-mentioned two-dimensional drawing with their corresponding graphic coordinates and graphic directions.

[0040] According to actual needs, in this embodiment, after the drawn two-dimensional drawing is used as the final two-dimensional drawing, it also includes generating an xml file or a json file or other files that can carry relevant attribute information according to the topological relationship of the main pipeline and each branch pipeline in the two-dimensional drawing, the graphic coordinates, and the pipeline and pipe fitting attribute information. The pipeline and pipe fitting attribute information here includes process parameters, pipeline flow direction, OPC information, and insulation information.

[0041] In order to automatically generate a 2D pipeline based on a 3D pipeline model, you can also automatically generate a pipeline and instrument flow chart. Figure 2 As shown, the method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model in this embodiment also includes the following steps S1 to S4:

[0042] Step S1, calling and reading a file that can carry relevant attribute information in the intelligent PID drawing software, obtaining the attributes in the file that can carry relevant attribute information and the path information corresponding to the pipe legend symbol;

[0043] Step S2, determining whether the obtained pipe legend symbol is missing:

[0044] When a pipe legend symbol is missing, an error message indicating that the pipe is missing is given; otherwise, the file that can carry relevant attribute information is continued to be read and the process goes to step S3;

[0045] Step S3, obtaining pipeline topology, graphic coordinates, and pipeline and pipe fitting attribute information according to the read file information that can carry relevant attribute information;

[0046] Step S4, based on the obtained pipeline topology and pipeline and pipe fitting attribute information, generate an intelligent UID (ie, a pipeline and instrument flow chart with process parameters).

[0047] Although the preferred embodiments of the present invention are described in detail above, it should be clearly understood that various modifications and variations are possible for those skilled in the art. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model, characterized in that: The steps include: Step 1, selecting a main pipeline model located in the three-dimensional pipeline model and associated with the two-dimensional drawing to be generated, and using the selected main pipeline model as the main pipeline model to be processed; Step 2, automatically calculating all branch pipelines that are of the same medium and associated with the main pipeline model to be processed in the three-dimensional pipeline model, and taking the set formed by all the branch pipelines as the initial set of branch pipelines; Step 3: determine whether the branch pipeline information in the initial set of branch pipelines is complete: When all branch pipeline information is complete, the initial set of branch pipelines is used as the final set of branch pipelines, and the process goes to step 4; Otherwise, all missing branch pipelines are selected in the three-dimensional pipeline model, and all selected branch pipelines are added to the initial set of branch pipelines to form a final set of branch pipelines, and the process goes to step 4; Step 4, based on the association relationship between the main pipeline model to be processed and each branch pipeline in the final set of branch pipelines, a main pipeline-branch pipeline relationship list sorted in the order of association relationship is obtained; wherein the main pipeline-branch pipeline relationship list contains the logical connection relationship between the multi-level branch pipelines and the secondary branch connection relationship between the branch pipelines; Step 5: according to the obtained main pipeline-branch pipeline relationship list and the preset drawing scale of the two-dimensional drawing, draw the information of each branch pipeline and the pipe fittings on the two-dimensional drawing; Step 6, according to the sequence and logical relationship of the pipelines, loop through steps 4 and 5 until all branch pipelines of the final set of branch pipelines are drawn on the two-dimensional drawing, and the drawn two-dimensional drawing is used as the final two-dimensional drawing.

2. The method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model according to claim 1, characterized in that: The pipe fitting attribute information of the pipe fitting information includes the drawing branch length, spacing and font size of the pipe fitting on the two-dimensional drawing.

3. The method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model according to claim 1, characterized in that: In step 5, the pipe fitting symbols of each branch pipeline and pipe fitting information are drawn on the two-dimensional drawing with their corresponding graphic coordinates and graphic directions.

4. The method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model according to any one of claims 1 to 3, characterized in that: The two-dimensional drawing is a CAD drawing.

5. The method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model according to any one of claims 1 to 3, characterized in that: After the drawn two-dimensional drawing is used as the final two-dimensional drawing, it also includes: generating a file that can carry relevant attribute information according to the topological relationship of the main pipeline and each branch pipeline in the two-dimensional drawing, graphic coordinates, and pipeline and pipe fitting attribute information.

6. The method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model according to claim 5, characterized in that: The pipeline and pipe fitting attribute information includes process parameters, pipeline flow direction, OPC information and insulation information.

7. The method for automatically generating a two-dimensional pipeline and instrument flow chart based on a three-dimensional pipeline model according to claim 5, characterized in that: Also includes: Step S1, calling and reading a file that can carry relevant attribute information in the intelligent PID drawing software, obtaining the attributes in the file that can carry relevant attribute information and the path information corresponding to the pipe legend symbol; Step S2, determining whether the obtained pipe legend symbol is missing: When a pipe legend symbol is missing, an error message indicating that the pipe is missing is given; otherwise, the file that can carry relevant attribute information is continued to be read and the process goes to step S3; Step S3, obtaining pipeline topology, graphic coordinates, and pipeline and pipe fitting attribute information according to the read file information that can carry relevant attribute information; Step S4, generating a smart UID based on the acquired pipeline topology relationship and pipeline and pipe fitting attribute information.

Citation Information

Cited By

  • Method and device for generating process pipeline and instrument flow chart of equipment

    CN119720449A