A method for displaying the association between P&ID drawings and three-dimensional models, and a computer program product

By constructing an engineering information database and analyzing P&ID drawing data, combining association rules with the three-dimensional model, displaying the associated objects and three-dimensional models, the cumbersome problems of the traditional P&ID drawing design process are solved, and the efficiency and accuracy of digital delivery of the project are improved.

CN119760811APending Publication Date: 2025-04-04SHENZHEN TUWEI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411817405.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The traditional P&ID drawing design, review and modification process is cumbersome and error-prone, making it difficult to meet the needs of efficient and accurate information transmission.

Method used

By building an engineering information database, analyzing P&ID drawing data and storing it into the database, combining preset association rules, finding objects that match the three-dimensional model, and displaying the associated objects and three-dimensional models on the same display interface.

Benefits of technology

It significantly improves the efficiency and accuracy of digital delivery of engineering, and solves the problem of lack of concreteness when only looking at two-dimensional drawings and lack of design-period data when looking at only three-dimensional models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119760811A_ABST
    Figure CN119760811A_ABST
Patent Text Reader

Abstract

A method and computer program product for displaying the association between a P&ID drawing and a three-dimensional model, the method comprising: constructing an engineering information database, wherein the engineering information database defines the attribute information and connection relationship of each object in the P&ID drawing and the attribute information of the three-dimensional model; parsing the data of the P&ID drawing to obtain parsed data including the objects contained in the P&ID drawing and their attribute information, and storing the objects contained in the P&ID drawing and their attribute information in the engineering information database; acquiring the three-dimensional model and its attribute information, and storing them in the engineering information database; searching for objects matching the three-dimensional model according to association rules, and associating the matching objects with the three-dimensional model; and displaying the associated objects and the three-dimensional model on the same display interface based on user operations, thereby automatically establishing a two-dimensional and three-dimensional associated display of the P&ID drawing and the three-dimensional model, and significantly improving the efficiency and accuracy of digital engineering delivery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to a method for displaying the association between a P&ID drawing and a three-dimensional model, and a computer program product. Background Art

[0002] P&ID is an important design document for factories and other production environments. Traditional P&ID (Piping and Instrumentation Diagram) mainly relies on paper or electronic documents as the medium for information delivery. Its design, review and modification process is cumbersome and error-prone. With the rapid development of factory digitization and intelligence, traditional P&ID can no longer meet the needs of efficient and accurate information transmission. Summary of the invention

[0003] The present invention provides a method for displaying the association between a P&ID drawing and a three-dimensional model and a computer program product, aiming to improve the efficiency and accuracy of digital delivery of engineering projects.

[0004] According to the first aspect, an embodiment provides a method for displaying the association between a P&ID drawing and a three-dimensional model, including:

[0005] Pre-constructing an engineering information database, wherein the engineering information database defines the attribute information and connection relationship of each object in the P&ID drawing, and the attribute information of the three-dimensional model, wherein the objects include equipment, instruments, pipelines and valves;

[0006] Acquire data of a P&ID drawing, parse the data of the P&ID drawing to obtain parsed data, wherein the parsed data includes objects contained in the P&ID drawing and attribute information thereof; store the objects contained in the P&ID drawing and attribute information thereof into the engineering information database;

[0007] Acquire the 3D model and its attribute information in the pre-built 3D scene, and store them in the engineering information database;

[0008] Based on the objects and their attribute information, and the three-dimensional models and their attribute information stored in the engineering information database, a full-text scan is performed on the objects and their attribute information parsed from the P&ID drawings, and objects matching the three-dimensional models are searched according to preset association rules, and the matching objects are associated with the three-dimensional models, wherein the association rules are determined according to the attribute information of the objects in the P&ID drawings and the attribute information of the three-dimensional models;

[0009] Based on user operations, related objects and 3D models are displayed on the same display interface.

[0010] In some embodiments, displaying the associated object and the three-dimensional model on the same interface based on the user's operation includes:

[0011] Display a display interface, wherein the display interface includes a drawing display area and a three-dimensional scene display area, wherein the P&ID drawing is displayed in the drawing display area, and the three-dimensional scene is displayed in the three-dimensional scene display area;

[0012] When the user selects an object in the P&ID drawing, if there is a three-dimensional model associated with it, the three-dimensional model is displayed in the center of the three-dimensional scene display area; when the user selects a three-dimensional model in the three-dimensional scene, if there is an object in the P&ID drawing associated with it, the object is displayed in the center of the drawing display area.

[0013] In some embodiments, the attribute information of the object includes an object code. When the P&ID drawing is displayed, the object code of the object in the P&ID drawing is also displayed, and the user selects the corresponding object by selecting the object code.

[0014] When the user selects an object code, the object code is displayed in a preset color. If there is a three-dimensional model associated with the object corresponding to the object code, the three-dimensional model is also displayed in the preset color and a white outline is added to the three-dimensional model.

[0015] In some embodiments, the display interface is a Web interface, and the P&ID drawing is displayed in the drawing display area in the following manner:

[0016] According to the data of the P&ID drawing and the parsed data obtained by parsing, the P&ID drawing is converted into an svg file;

[0017] Using Web technology, dynamically rendering the P&ID drawing in the drawing display area according to the svg file, wherein objects in the P&ID drawing are rendered as elements in the Web interface;

[0018] A hotspot is established for an element associated with a three-dimensional model. When a user clicks on the hotspot on the element, the three-dimensional model associated with the element is displayed in the center of the three-dimensional scene display area. When a user selects a three-dimensional model in the three-dimensional scene, if there is an element associated with it, the hotspot of the element is displayed in the center of the drawing display area.

[0019] In some embodiments, when converting the P&ID drawing into an svg file, if the P&ID drawing contains unrecognizable fonts, they are uniformly converted into preset fonts.

[0020] In some embodiments, constructing the engineering information database includes:

[0021] Receiving a user's instruction to create a certain type of object, creating an object class in the engineering information database for storing objects of this type, and adding basic attributes to the object class, wherein the basic attributes include at least an object code and an object name;

[0022] When receiving an attribute adding operation of a user on a certain object class, the attribute information input by the user is added to the object class.

[0023] In some embodiments, the attribute information of the three-dimensional model includes a model code, and the association rule includes a built-in association rule and a custom association rule;

[0024] The built-in association rule includes a coding association rule, wherein if an object code of an object is the same as a model code of a three-dimensional model, then the object is associated with the three-dimensional model;

[0025] The custom association rule is an association rule defined by a user, and the custom association rule is set in the following manner: receiving an association rule adding instruction from a user, and saving the association rule input by the user as the custom association rule.

[0026] In some embodiments, after parsing the data of the P&ID drawing to obtain parsed data, the method further includes:

[0027] Verify the attribute information of the parsed object according to the preset verification rules, mark the attribute information that does not meet the verification rules, and give a prompt;

[0028] When a deletion instruction is received from the user for attribute information that does not satisfy the verification rule, the attribute information is deleted.

[0029] In some embodiments, there are multiple verification rules, and the prompt includes prompting which verification rule is not satisfied;

[0030] The verification rules include built-in verification rules and custom verification rules. The custom verification rules are verification rules defined by the user. The custom verification rules are set in the following manner: receiving a verification rule adding instruction from the user, and saving the verification rules input by the user as custom verification rules.

[0031] According to the second aspect, an embodiment provides a computer program product, including a computer program and / or instructions, which, when executed by a processor, implements the association display method of any of the above embodiments.

[0032] According to the method and computer program product for displaying the association between P&ID drawings and three-dimensional models in the above-mentioned embodiments, by constructing an engineering information database, the attribute information and connection relationship of each object in the P&ID drawings are pre-defined, and then the data of the P&ID drawings are parsed to obtain parsed data including the objects contained in the P&ID drawings and their attribute information, and the objects contained in the P&ID drawings and their attribute information are stored in the engineering information database, thereby realizing data structuring; according to the association rules, objects matching the three-dimensional model are found, and the matching objects are associated with the three-dimensional model; based on the user's operation, the associated objects and three-dimensional models are displayed on the same display interface, and the two- and three-dimensional association display of the P&ID drawings and the three-dimensional models is automatically established, which solves the pain points of no visualization when only looking at two-dimensional drawings and no design period data when only looking at three-dimensional models, and significantly improves the efficiency and accuracy of digital delivery of engineering. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A flowchart of a method for displaying the association between a P&ID drawing and a three-dimensional model in some embodiments;

[0034] Figure 2 A P&ID drawing of an embodiment;

[0035] Figure 3 A schematic diagram of parsing data according to an embodiment;

[0036] Figure 4 A schematic diagram of a display interface of an embodiment;

[0037] Figure 5 A flowchart of displaying a P&ID drawing in a drawing display area in an embodiment. DETAILED DESCRIPTION

[0038] The present invention is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are for making the present application better understood. However, those skilled in the art can easily recognize that some features can be omitted in different situations, or can be replaced by other elements, materials, methods. In some cases, some operations related to the present application are not shown or described in the specification, this is to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the art.

[0039] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.

[0040] The serial numbers of the components in this document, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning. The "connection" and "coupling" mentioned in this application, unless otherwise specified, include direct and indirect connections (couplings).

[0041] In view of the shortcomings of the prior art, the present invention proposes a method for displaying the association between P&ID drawings and three-dimensional models based on database and rule-driven. The method analyzes the data information of equipment, instruments, pipelines, valves, etc. in the P&ID drawings, saves the analyzed data to the database to achieve data structuring, and automatically establishes two-dimensional and three-dimensional associations between P&ID drawings and three-dimensional models in combination with the rule engine, displays the two-dimensional P&ID drawings and three-dimensional models together, and significantly improves the efficiency and accuracy of digital delivery of engineering. The method can be developed into a software system or software product, such as a digital information management platform, which can provide an interactive interface for users to view and operate through a display device.

[0042] Please refer to Figure 1 In some embodiments of the present invention, the method for displaying the association between the P&ID drawings and the three-dimensional model includes steps 100 to 500, which are described in detail below.

[0043] Step 100: Pre-build a project information database.

[0044] The engineering information database is used to store data, information and files required for engineering construction projects such as plant construction, including relevant data of P&ID drawings and 3D models.

[0045] When building the engineering information database, the data to be stored will be defined, including the attribute information, connection relationships and operation rules of each object in the P&ID drawing (specifying what type of 3D model the object can be associated with), as well as the attribute information of the 3D model. The relevant data obtained later can be stored in the engineering information database. Each type of data can have a corresponding class for storage. The engineering information database can be built according to the actual needs of the engineering construction project.

[0046] In some embodiments, the system supports users to create their own class libraries through dynamic data modeling. For example, to store a certain type of object, an object class needs to be created. At this time, it is necessary to determine the type of attribute information of the object and add these attribute information to the object class. In some embodiments, the system has built-in basic attributes, which will automatically add corresponding basic attributes to the created object class. When there is a need for additional attribute information, the user can enter other attribute information to add. Then, building the engineering information database includes: receiving a user's creation instruction for a certain type of object, creating an object class in the engineering information database for storing objects of this type, and adding basic attributes to the object class, wherein the basic attributes at least include object code and object name; when receiving a user's attribute addition operation for a certain object class, adding the attribute information entered by the user to the object class.

[0047] A specific example is: when a user creates a device class, the system will automatically create built-in basic attributes for the device class, such as device code, device name, region, plant, etc. If the built-in basic attributes cannot cover the actual scenario, such as some equipment requires insulation level, design parameters, coordinate position and other attribute information, the user can enter and add it by himself.

[0048] In some embodiments, the engineering information database supports dynamic updating to ensure the timeliness and accuracy of information. When an update operation of the engineering information database is received from a user, the engineering information database is updated according to the update operation.

[0049] Step 200: Acquire data of the P&ID drawing, parse the data of the P&ID drawing to obtain parsed data. The parsed data includes objects and attribute information contained in the P&ID drawing, and the objects and attribute information contained in the P&ID drawing are stored in the engineering information database.

[0050] The data of the P&ID drawing is usually a dwg file, etc., which can be opened using CAD software to view the P&ID drawing. In one embodiment of the present invention, a CAD plug-in is set on the CAD software, and the data in the P&ID drawing is parsed and imported into the engineering information database through the CAD plug-in to achieve data structuring.

[0051] The parsed data includes the objects and their attribute information contained in the P&ID drawing, and may also include data such as the layers and attribute information in the P&ID drawing. These data and the data of the original P&ID drawing are stored in the engineering information database. The system will read the imported data and automatically generate the corresponding object class according to the type of the parsed object. If the parsed attribute information includes attribute information that is not defined in the engineering information database, the attribute information will be automatically created as the attribute information of the object, that is, added to the engineering information database. In one embodiment, the P&ID drawing is as follows: Figure 2 As shown, the parsed data obtained is as follows Figure 3 shown.

[0052] In some embodiments, after the data of the P&ID drawing is parsed to obtain the parsed data, the parsed data is also verified according to preset verification rules, specifically including: verifying the attribute information of the parsed object according to the preset verification rules, marking the attribute information that does not meet the verification rules, and providing a prompt; when a user's deletion instruction for the attribute information that does not meet the verification rules is received, the attribute information is deleted.

[0053] Verification rules are designed to verify the parsed data. The main purpose is to ensure that the data complies with industry standards, operating specifications and safety requirements. Verification rules can be designed according to relevant industry standards, operating specifications and safety requirements. When the data does not meet the verification rules, the unsatisfactory data will be marked to prompt the user that the data does not meet the verification rules. The user decides whether to retain or delete the data that does not meet the verification rules. In some embodiments, there are multiple verification rules, and the prompt includes which verification rule is not met.

[0054] In some embodiments, the verification rules include built-in verification rules and custom verification rules. The system has built-in verification rules (i.e., built-in verification rules) based on design rules and operating specifications to verify the imported data, including verification of pipeline flow direction, instrument configuration, safety distance, etc.; when the built-in verification rules are not sufficient to support the user's needs, the user can also customize the verification rules for processing.

[0055] In some embodiments, the built-in verification rules include encoding verification rules, which are used to check whether the object has an object encoding, and to prompt if not.

[0056] In some embodiments, the custom verification rule is set by receiving a user's verification rule adding instruction and saving the verification rule input by the user as a custom verification rule. For example, for some devices, a custom verification rule can be used to check whether its temperature, power and other attributes have values.

[0057] Step 300: Obtain the 3D model and its attribute information in the pre-built 3D scene, and store them in the engineering information database.

[0058] The 3D scene here can be a 3D scene of a production environment such as a chemical plant, a power plant, etc. The 3D model can also include basic attributes such as a model code and a model name.

[0059] Step 400: Based on the objects and their attribute information, the three-dimensional model and its attribute information stored in the engineering information database, a full-text scan is performed on the objects and their attribute information parsed from the P&ID drawings, and objects matching the three-dimensional model are searched according to preset association rules, and the matching objects are associated with the three-dimensional model, wherein the association rules are determined based on the attribute information of the objects in the P&ID drawings and the attribute information of the three-dimensional model.

[0060] According to the preset association rules, find objects that match the 3D model, that is, find objects that meet the association rules with the 3D model. The attribute information of the object and the attribute information of the 3D model can be used to construct the association rules. For example, the associated object and the 3D model should have the same code. For example, some equipment has the attribute "description" which describes what kind of 3D model it can be associated with. Then this attribute can be used for association.

[0061] In some embodiments, the association rules include built-in association rules and custom association rules. The system has some built-in association rules (i.e., built-in association rules). When the built-in association rules cannot meet the actual needs, the user can customize the association rules related to any attribute (i.e., custom association rules), such as using the above-mentioned "description" attribute to customize an association rule.

[0062] In some embodiments, the built-in association rule includes a code association rule, and the code association rule is that if an object code of an object is the same as a model code of a three-dimensional model, then the object is associated with the three-dimensional model.

[0063] In some embodiments, the custom association rule is set in the following manner: receiving an association rule adding instruction from a user, and saving the association rule input by the user as the custom association rule.

[0064] Step 500: Based on the user's operation, the associated objects and 3D models are displayed on the same display interface. In this way, the user can view the P&ID drawings and 3D models at the same time, solving the pain points of only viewing the 2D drawings without visualization and only viewing the 3D models without design period data.

[0065] In some embodiments, a display interface may be provided for user operation, the display interface including a drawing display area and a 3D scene display area, the P&ID drawings are displayed in the drawing display area, and the 3D scene is displayed in the 3D scene display area. Figure 4 This is a display interface in an embodiment. It can be seen that the left side is a 3D scene display area and the right side is a drawing display area. Step 500 specifically includes: displaying the display interface; when the user selects an object in a P&ID drawing, if there is a 3D model associated with it, the 3D model is displayed in the center of the 3D scene display area; when the user selects a 3D model in a 3D scene, if there is an object in a P&ID drawing associated with it, the object is displayed in the center of the drawing display area. The user can select an object or a 3D model by clicking the mouse.

[0066] In some embodiments, when displaying the P&ID drawing, the object codes of the objects in the P&ID drawing are also displayed, such as Figure 4 As shown, the user selects the corresponding object by selecting the object code. When the user selects the object code, the object code is displayed in a preset color. If there is a three-dimensional model associated with the object corresponding to the object code, the three-dimensional model is also displayed in the preset color. For example, Figure 4 In the figure, the object code C1101 CULUMN is selected and displayed in blue. At the same time, the three-dimensional model associated with the object corresponding to the object code in the three-dimensional scene display area on the left is displayed in the center and is also displayed in blue.

[0067] The applicant has found that since there are some other colored three-dimensional models around the three-dimensional model, it is sometimes difficult to separate the three-dimensional model associated with the object from the other three-dimensional models by simply displaying the three-dimensional model associated with the object in a preset color. Therefore, in some embodiments, a white outline is added to the three-dimensional model associated with the object, so that the three-dimensional model can be highlighted for easy viewing.

[0068] In some embodiments, the display interface is a web interface, such as a web page, which can be previewed and viewed through a browser. Figure 5 , the P&ID drawing is displayed in the drawing display area through steps 510 to 530, which are described in detail below.

[0069] Step 510: Convert the P&ID drawing into an SVG file according to the data of the P&ID drawing and the parsed data obtained by the parsing.

[0070] For example, a graphics conversion algorithm written in C++ can be used to process the data of the P&ID drawing and the parsed data obtained by parsing and convert them into svg files. svg files are vector graphics files that can be browsed on a browser without distortion. The graphics conversion algorithm can refer to the relevant existing technology and will not be described here.

[0071] In some cases, P&ID drawings may contain unrecognizable fonts (for example, P&ID drawings designed and edited with lower versions of CAD software). Therefore, you can pre-set a font. When converting P&ID drawings to svg files, if there are unrecognizable fonts in the P&ID drawings, they will be uniformly converted to the preset font to avoid garbled characters caused by unrecognized fonts. The preset font is preferably Songti, which can restore the original image as much as possible.

[0072] Step 520: Using Web technologies (including HTML, CSS, and JavaScript, etc.), dynamically render the P&ID drawing in the drawing display area according to the svg file, wherein the objects in the P&ID drawing are rendered as elements in the Web interface.

[0073] Step 530: Create a hotspot for the element associated with the 3D model, and the user selects the object by clicking on the hotspot. When the user clicks on the hotspot on the element, the 3D model associated with the element is displayed in the center of the 3D scene display area; when the user selects the 3D model in the 3D scene, if there is an element associated with it, the hotspot of the element is displayed in the center of the drawing display area. The hotspot and the 3D model can be displayed in the same preset color.

[0074] In one embodiment, the hotspot may be an object code. After parsing the parsed data of the P&ID drawing and scanning the full text content, the location of the object code of the object that can match the three-dimensional model is found, and a three-dimensional model associated with the hotspot binding is established at the corresponding location. The front end can realize the two-dimensional and three-dimensional linkage function through marking.

[0075] At present, there are many versions of CAD software, and high and low versions coexist and are not compatible with each other. For example, when a high version CAD file is opened with a low version CAD software, it cannot be displayed normally. However, the display method of P&ID drawings provided in this embodiment does not require the installation of CAD software or the use of browser plug-ins. P&ID drawings can be previewed directly on the browser, and all elements of the original drawing can be completely restored. There will be no distortion when previewing in the browser, and the original hotspots on the P&ID drawings that are associated with the three-dimensional model will be automatically established. After actual testing and verification, it is compatible with P&ID drawings generated by almost all versions of CAD software.

[0076] The following is a specific implementation method, which uses graphics conversion algorithms and crawler technologies to deeply analyze dwg type P&ID files, extract the data contained in the P&ID drawings, convert the dwg files into svg files that can be previewed by the browser to ensure that the images are not distorted, and implement svg preview and hotspot linkage based on Web technology. The specific steps are as follows.

[0077] Document parsing: Use the developed CAD plug-in to parse the dwg file, extract the objects and their attribute information contained in the dwg file, as well as the layers, attributes and other data of the dwg file, and upload the original and extracted data to the system.

[0078] Drawing conversion: The dwg file and the parsed data are processed and converted into vector image svg files through a graphics conversion algorithm written in C++; mainstream CAD fonts are built in, and fonts that are truly unrecognizable are uniformly converted into Songti to restore the original image as much as possible.

[0079] 2D and 3D linkage: According to the preset association rules, find objects that match the 3D model and associate the matching objects with the 3D model. Using Web technologies such as HTML, CSS, and JavaScript, dynamically render P&ID drawings on the Web interface based on the converted SVG files, and use object coding to establish hotspots. Among them, CSS is used to control the style and layout of SVG elements, and JavaScript is used to achieve the creation of hotspots for SVG elements and the interaction with 3D models.

[0080] Data binding display: When users click on the object code on the P&ID drawing in the web interface, they can locate the specific 3D model and obtain the attribute information of the object corresponding to the object code; when users click on the 3D model in the 3D scene, they can also locate the hotspot of the associated element. Figure 4 As shown, the drawing display area in the web interface includes a drawing option (named after the drawing is converted into svg file "C1101.svg") and a property panel option, which can be implemented as two Tab keys. When the user clicks the property panel option, the drawing display area switches to display the property information of the selected object.

[0081] In some embodiments of the present invention, a computer program product is further provided, which includes a computer program and / or instructions. When the computer program and / or instructions are executed by a processor, the association display method of any embodiment of the present invention is implemented.

[0082] The method for displaying the association between P&ID drawings and three-dimensional models and the computer program product provided by the embodiments of the present invention have the following advantages over the prior art:

[0083] 1. High data integrity: According to the preset association rules, objects matching the 3D model are found and associated with the 3D model. Based on the user's operation, the associated objects and 3D models are displayed on the same display interface, and the 2D and 3D association display of P&ID drawings and 3D models is automatically established. The 2D P&ID drawings and 3D models are put together, which solves the pain points of only looking at 2D drawings without visualization and only looking at 3D models without design period data, and significantly improves the efficiency and accuracy of digital engineering delivery;

[0084] 2. High data accuracy: In some embodiments, rich verification rules are built in, and the parsed data of the P&ID drawings are automatically verified according to the rule engine, and custom verification rules are supported.

[0085] 3. Higher flexibility: In some embodiments, there are not only built-in verification rules and association rules, but also users are allowed to customize verification rules and association rules, which can realize the interaction between P&ID drawings and 3D models in different scenarios, and have stronger adaptability and flexibility.

[0086] 4. Stronger compatibility: In some embodiments, the drawings generated by almost all versions of CAD software are compatible. If there are indeed unrecognizable fonts, they will be uniformly converted to preset fonts to avoid garbled characters caused by font unrecognition.

[0087] Those skilled in the art will appreciate that all or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to implement the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above-mentioned functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can also be stored in a storage medium such as a server, another computer, disk, optical disk, flash disk or mobile hard disk, and can be downloaded or copied and saved in the memory of the local device, or the system of the local device is updated, and when the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.

[0088] The above specific examples are used to illustrate the present invention, which is only used to help understand the present invention and is not intended to limit the present invention. For those skilled in the art, according to the concept of the present invention, some simple deductions, modifications or substitutions can be made.

Claims

1. A method for displaying the association between a P&ID drawing and a three-dimensional model, characterized in that: include: Pre-constructing an engineering information database, wherein the engineering information database defines the attribute information and connection relationship of each object in the P&ID drawing, and the attribute information of the three-dimensional model, wherein the objects include equipment, instruments, pipelines and valves; Acquire data of a P&ID drawing, parse the data of the P&ID drawing to obtain parsed data, wherein the parsed data includes objects contained in the P&ID drawing and attribute information thereof; store the objects contained in the P&ID drawing and attribute information thereof into the engineering information database; Acquire the 3D model and its attribute information in the pre-built 3D scene, and store them in the engineering information database; Based on the objects and their attribute information, and the three-dimensional models and their attribute information stored in the engineering information database, a full-text scan is performed on the objects and their attribute information parsed from the P&ID drawings, and objects matching the three-dimensional models are searched according to preset association rules, and the matching objects are associated with the three-dimensional models, wherein the association rules are determined according to the attribute information of the objects in the P&ID drawings and the attribute information of the three-dimensional models; Based on user operations, related objects and 3D models are displayed on the same display interface.

2. The association display method according to claim 1, characterized in that: The method of displaying the associated objects and the three-dimensional model on the same interface based on the user's operation includes: Display a display interface, wherein the display interface includes a drawing display area and a three-dimensional scene display area, wherein the P&ID drawing is displayed in the drawing display area, and the three-dimensional scene is displayed in the three-dimensional scene display area; When the user selects an object in the P&ID drawing, if there is a three-dimensional model associated with it, the three-dimensional model is displayed in the center of the three-dimensional scene display area; when the user selects a three-dimensional model in the three-dimensional scene, if there is an object in the P&ID drawing associated with it, the object is displayed in the center of the drawing display area.

3. The association display method according to claim 2, characterized in that: The attribute information of the object includes an object code. When the P&ID drawing is displayed, the object code of the object in the P&ID drawing is also displayed, and the user selects the corresponding object by selecting the object code; When the user selects an object code, the object code is displayed in a preset color. If there is a three-dimensional model associated with the object corresponding to the object code, the three-dimensional model is also displayed in the preset color and a white outline is added to the three-dimensional model.

4. The association display method according to claim 2 or 3, characterized in that: The display interface is a web interface, and the P&ID drawings are displayed in the drawing display area in the following ways: According to the data of the P&ID drawing and the parsed data obtained by parsing, the P&ID drawing is converted into an svg file; Using Web technology, dynamically rendering the P&ID drawing in the drawing display area according to the svg file, wherein objects in the P&ID drawing are rendered as elements in the Web interface; A hotspot is established for an element associated with a three-dimensional model. When a user clicks on the hotspot on the element, the three-dimensional model associated with the element is displayed in the center of the three-dimensional scene display area. When a user selects a three-dimensional model in the three-dimensional scene, if there is an element associated with it, the hotspot of the element is displayed in the center of the drawing display area.

5. The association display method according to claim 4, characterized in that: When converting the P&ID drawing into an svg file, if there are unrecognizable fonts in the P&ID drawing, they are uniformly converted into preset fonts.

6. The association display method according to claim 1, characterized in that: Building a project information database includes: Receiving a user's instruction to create a certain type of object, creating an object class in the engineering information database for storing objects of this type, and adding basic attributes to the object class, wherein the basic attributes at least include an object code and an object name; When receiving an attribute adding operation of a user on a certain object class, the attribute information input by the user is added to the object class.

7. The association display method according to claim 6, characterized in that: The attribute information of the three-dimensional model includes a model code, and the association rules include built-in association rules and user-defined association rules; The built-in association rule includes a coding association rule, wherein if an object code of an object is the same as a model code of a three-dimensional model, then the object is associated with the three-dimensional model; The custom association rule is an association rule defined by a user, and the custom association rule is set in the following manner: receiving an association rule adding instruction from a user, and saving the association rule input by the user as the custom association rule.

8. The association display method according to claim 1, characterized in that: After parsing the data of the P&ID drawing to obtain parsed data, the method further includes: Verify the attribute information of the parsed object according to the preset verification rules, mark the attribute information that does not meet the verification rules, and give a prompt; When a deletion instruction is received from the user for attribute information that does not satisfy the verification rule, the attribute information is deleted.

9. The association display method according to claim 8, characterized in that: There are multiple verification rules, and when prompting, it includes prompting which verification rule is not met; The verification rules include built-in verification rules and custom verification rules. The custom verification rules are verification rules defined by the user. The custom verification rules are set in the following manner: receiving a verification rule adding instruction from the user, and saving the verification rules input by the user as custom verification rules.

10. A computer program product comprising a computer program and / or instructions, characterized in that: When the computer program and / or instructions are executed by a processor, the association display method described in any one of claims 1 to 9 is implemented.

Citation Information

Cited By

  • Three-dimensional model integration delivery method and system, medium and terminal

    CN121524385A