PID drawing verification method and device
By extracting and checking functional object data in P&ID drawings, and using category checklists and regular expressions to automatically compare, the problem of low functional object checking efficiency in Plant 3D software is solved, a fast and automatic verification process is realized, and significant improvement is achieved. Improved verification efficiency.
Patent Information
- Application Number
- CN202410749183.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-27
AI Technical Summary
In Plant 3D software, after the intelligent P&ID drawing is drawn, the verification efficiency of the symbol category and tag category code of the functional object is low. It requires clicking one by one, which takes a long time. Especially when the number of functional objects is large, the verification efficiency is low.
Provide a P&ID drawing verification method and device. By obtaining the data to be inspected, extract the object number, category name and drawing number, delete the preset characters in the category name, add it to the category checklist, and use regular expression matching Search and check the results with the preset device coding table, automatically compare and modify inconsistent objects until they pass the verification.
It improves the verification efficiency of functional objects, reduces the steps for users to manually click for verification, significantly reduces verification time, and improves verification efficiency.
Smart Images

Figure CN118709247A
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a method and device for verifying a P&ID drawing. Background Art
[0002] In the digital age, 3D design is becoming more and more popular. Plant 3D software, as a commonly used industrial design software, is widely used in various industries. In the intelligent P&ID module of Plant 3D software, after directly dragging the functional object graphic on the right and placing it in the drawing, the system defaults to the functional object category code of this category. In this case, we only need to fill in the subsequent serial number.
[0003] After the intelligent P&ID drawing is completed, it is necessary to check whether the symbol category selected for the drawn functional object is consistent with the category code in the bit number of the functional object. At present, it is mainly through the data manager that comes with the Plant 3D software. Users click on different equipment categories in turn, and compare the relevant design data according to the bit number and category on the right side of the data manager to determine whether the category of the functional object of the equipment is correct. Since it takes a lot of time to click and check each functional object one by one, especially when there are a large number of functional objects, users need to spend a lot of time on checking, which reduces the efficiency of checking.
[0004] Therefore, how to improve the efficiency of checking functional objects has become an urgent problem to be solved in this field. Summary of the invention
[0005] The present application provides a P&ID drawing verification method and device, the purpose of which is to improve the verification efficiency of functional objects.
[0006] In order to achieve the above objectives, this application provides the following technical solutions:
[0007] A P&ID drawing verification method includes:
[0008] Acquire the data to be inspected in the P&ID drawing; the data to be inspected at least includes the object to be inspected;
[0009] Extract the data to be inspected to obtain the bit number, category name and drawing number corresponding to the bit number of the object to be inspected;
[0010] Deleting the preset characters in the category name to obtain the target category name;
[0011] Add the bit number of the object to be inspected, the target category name and the drawing number corresponding to the bit number to a category checklist;
[0012] Checking the objects to be inspected in the category check list to obtain a check result;
[0013] The verification result of the object to be verified is determined according to the verification result.
[0014] Optionally, extracting the data to be inspected to obtain the bit number, category name and drawing number corresponding to the bit number of the object to be inspected includes:
[0015] Using regular expressions to match the data to be checked to obtain a matching result;
[0016] The position number, category name and drawing number corresponding to the position number of the object to be inspected are filtered out from the matching results, and the position number, category name and drawing number corresponding to the position number of the object to be inspected are stored in a preset table.
[0017] Optionally, checking the objects to be inspected in the category check list to obtain a check result includes:
[0018] Deleting the digits in the bit number of the object to be inspected to obtain the target category code;
[0019] Find the device category name corresponding to the target category code from the preset device code table;
[0020] Searching for a device name corresponding to the category name of the object to be inspected from a preset translation comparison table;
[0021] The device category name and the device name are compared to obtain a verification result.
[0022] Optionally, determining the verification result of the object to be verified according to the verification result includes:
[0023] When the verification result is TRUE, determining that the verification result of the object to be verified is that the object to be verified passes the verification;
[0024] When the verification result is FALSE, it is determined that the verification result of the object to be verified is that the object to be verified has failed the verification.
[0025] Optionally, also include:
[0026] When the verification result of the object to be verified is that the object to be verified fails the verification, obtaining the drawing number corresponding to the position number of the object to be verified;
[0027] Obtaining the drawing of the object to be verified according to the drawing number corresponding to the position number;
[0028] Modifying the position number or category name of the object to be inspected in the drawing of the object to be inspected to obtain a modified object to be inspected;
[0029] The modified object to be inspected is used as the object to be inspected, and the step of extracting the data to be inspected is returned to obtain the position number, category name and drawing number corresponding to the position number of the object to be inspected, until the modified object to be inspected is verified.
[0030] A P&ID drawing verification device, comprising:
[0031] An acquisition unit, used for acquiring data to be inspected in the P&ID drawing; the data to be inspected at least includes an object to be inspected;
[0032] An extraction unit, used to extract the data to be inspected, and obtain the bit number, category name and drawing number corresponding to the bit number of the object to be inspected;
[0033] a deleting unit, used for deleting preset characters in the category name to obtain a target category name;
[0034] An adding unit, used for adding the bit number of the object to be inspected, the target category name and the drawing number corresponding to the bit number to the category check list;
[0035] A checking unit, used for checking the objects to be checked in the category checking table to obtain a checking result;
[0036] A determination unit is used to determine the verification result of the object to be verified according to the verification result.
[0037] Optionally, the extraction unit is specifically used for:
[0038] Using regular expressions to match the data to be checked to obtain a matching result;
[0039] The position number, category name and drawing number corresponding to the position number of the object to be inspected are filtered out from the matching results, and the position number, category name and drawing number corresponding to the position number of the object to be inspected are stored in a preset table.
[0040] Optionally, the checking unit is specifically used for:
[0041] Deleting the digits in the bit number of the object to be inspected to obtain the target category code;
[0042] Find the device category name corresponding to the target category code from the preset device code table;
[0043] Searching for a device name corresponding to the category name of the object to be inspected from a preset translation comparison table;
[0044] The device category name and the device name are compared to obtain a verification result.
[0045] Optionally, the determining unit is specifically configured to:
[0046] When the verification result is TRUE, determining that the verification result of the object to be verified is that the object to be verified passes the verification;
[0047] When the verification result is FALSE, it is determined that the verification result of the object to be verified is that the object to be verified has failed the verification.
[0048] Optionally, also include:
[0049] A number obtaining unit, used for obtaining a drawing number corresponding to the position number of the object to be checked when the verification result of the object to be checked is that the object to be checked has not passed the verification;
[0050] A drawing acquisition unit, used to acquire the drawing of the object to be verified according to the drawing number corresponding to the position number;
[0051] A modification unit, used for modifying the position number or category name of the object to be inspected in the drawing of the object to be inspected to obtain a modified object to be inspected;
[0052] The return unit is used to take the modified object to be inspected as the object to be inspected, and return to execute the step of extracting the data to be inspected to obtain the position number, category name and drawing number corresponding to the position number of the object to be inspected, until the modified object to be inspected is verified.
[0053] The technical solution provided by the present application obtains the data to be inspected in the P&ID drawing; extracts the data to be inspected to obtain the bit number, category name and drawing number corresponding to the bit number of the object to be inspected; deletes the preset characters in the category name to obtain the target category name; adds the bit number, target category name and drawing number corresponding to the bit number of the object to be inspected to the category check list; verifies the object to be inspected in the category check list to obtain the verification result; determines the verification result of the object to be inspected according to the verification result. First, the bit number, category name and drawing number corresponding to the bit number of the object to be inspected are extracted and stored in the category check list, and then the object to be inspected is checked through the category check list to obtain the verification result. The user does not need to click on the object to be inspected one by one for verification, and the object to be inspected can be checked through the category check list, thereby improving the verification efficiency of the object to be inspected. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0055] Figure 1 A flowchart of a P&ID drawing verification method provided in an embodiment of the present application;
[0056] Figure 2 A schematic diagram of data to be tested provided in an embodiment of the present application;
[0057] Figure 3 A schematic diagram of a preset table provided in an embodiment of the present application;
[0058] Figure 4 A flowchart of checking an object to be inspected provided in an embodiment of the present application;
[0059] Figure 5 A schematic diagram of a preset device coding table provided in an embodiment of the present application;
[0060] Figure 6 A schematic diagram of a preset translation comparison table provided in an embodiment of the present application;
[0061] Figure 7 A schematic diagram of a category checklist provided in an embodiment of the present application;
[0062] Figure 8 A flowchart of a method for modifying an object to be inspected provided in an embodiment of the present application;
[0063] Fig. 9 A schematic diagram of another category checklist provided in an embodiment of the present application;
[0064] Fig.10 A schematic diagram of another category checklist provided in an embodiment of the present application;
[0065] Fig.11 A schematic diagram of the architecture of a P&ID drawing verification device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0066] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0067] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising 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. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0068] like Figure 1 As shown, it is a flowchart of a P&ID drawing verification method provided in an embodiment of the present application, comprising the following steps:
[0069] S101: Obtain the data to be inspected in the P&ID drawing.
[0070] The data to be checked at least includes the object to be checked (ie, the functional object).
[0071] The so-called P&ID drawings are actually drawings that show in detail the various equipment, instruments, pipelines and valves in the piping system.
[0072] The so-called data to be inspected are actually independently identifiable engineering entities such as equipment, pipelines, instruments, electrical equipment, and structures that constitute the factory.
[0073] Optionally, the data to be inspected in the P&ID drawing can be obtained through the data manager of the Plant3D software. The data to be inspected includes but is not limited to: bit number, size, grade library, description, category name, PnPID, endpoint connection, number, code. Specifically, the specific form of the data to be inspected is, for example Figure 2 shown.
[0074] It should be noted that the person in charge of the P&ID drawings can only obtain the data to be inspected of the P&ID drawings for which he is responsible, while the general person in charge can obtain the data to be inspected in all P&ID drawings.
[0075] S102: Extract the data to be inspected to obtain the position number, category name and drawing number corresponding to the position number of the object to be inspected.
[0076] The category name is the category to which the data to be inspected belongs. The drawing number corresponding to the bit number includes but is not limited to: DWG number.
[0077] The bit number is used to identify and distinguish different objects to be checked. The bit number can represent different parts of equipment, instruments, pipelines, etc.
[0078] It is understandable that through the bit number, we can easily know the function, location and attributes of each part, just like giving each item a unique name. In this way, whether it is engineering design, construction, or daily operation and maintenance, it can be more convenient and efficient. Therefore, the bit number is like an "identity card" in industrial production, helping us better manage and use various equipment and facilities.
[0079] It should be noted that the data to be inspected can be extracted through the Pathon statement. The Pathon statement can extract the position number, category name and drawing number corresponding to the position number of the object to be inspected in a short time and store them in a preset table.
[0080] Optionally, in another embodiment of the present application, the specific implementation of step S102 includes the following steps:
[0081] Use regular expressions to match the data to be tested and obtain matching results.
[0082] The matching result includes at least: the position number, category name and drawing number corresponding to the position number of the object to be inspected.
[0083] Optionally, a regular expression (\w+):(.+?)(\w+\.dwg) may be used to match the data to be inspected to obtain a matching result.
[0084] The bit number, category name and drawing number corresponding to the bit number of the object to be inspected are filtered out from the matching results, and the bit number, category name and drawing number corresponding to the bit number of the object to be inspected are stored in a preset table.
[0085] It can be understood that the preset table is created first, then the matching results are traversed, the bit number, category name and drawing number are extracted from each matching item, and finally the extracted bit number, category name and drawing number are stored in the corresponding columns of the preset table. Figure 3 .
[0086] S103: Delete the preset characters in the category name to obtain the target category name.
[0087] The preset characters include but are not limited to: space.
[0088] It is understandable that, since there are preset characters in the category name, the preset characters may affect the verification result. In order to ensure the accuracy of the verification result of the object to be inspected, it is necessary to delete the preset characters in the category name to obtain the target category name.
[0089] For example, the category name is Check Valve. After deleting the preset characters in the category name, the target category name is CheckValve.
[0090] S104: Add the bit number of the object to be inspected, the target category name and the drawing number corresponding to the bit number to the category check list.
[0091] It is understood that the category checklist can be used to verify that the part number and target category name of the object to be inspected match the existing information. By adding the drawing number corresponding to the part number and target category name to the category checklist, it is easier to compare the information of the object to be inspected and confirm its accuracy.
[0092] S105: Check the objects to be inspected in the category check list to obtain the check results.
[0093] The specific implementation process of checking the objects to be inspected in the category check list is as follows: determine the equipment category name according to the bit number of the object to be inspected; determine the equipment name according to the category name; and determine the check result according to the equipment category name and the equipment name.
[0094] Optionally, in another embodiment of the present application, the specific implementation of step S105 is as follows: Figure 4 As shown, the following steps are included:
[0095] S401: Delete the numbers in the bit number of the object to be inspected to obtain the target category code.
[0096] The target category code is the first two digits of the number code in the category checklist.
[0097] For example, the position number of the object to be inspected is PR31622. Delete the numbers in the position number of the object to be inspected, and the target category code is PR.
[0098] S402: Searching for a device category name corresponding to the target category code from a preset device code table.
[0099] It should be noted that the preset device code table pre-stores the target category code and the device category name corresponding to the target category code. Therefore, the device category name corresponding to the target category code can be found from the preset device code table. Specifically, the specific form of the preset device code table is as follows: Figure 5 shown.
[0100] S403: Searching for a device name corresponding to the category name of the object to be inspected from a preset translation comparison table.
[0101] It is understandable that the preset translation comparison table pre-stores the category name of the object to be inspected and the Chinese corresponding to the category name (i.e., the device name). Therefore, the device name corresponding to the category name of the object to be inspected can be found in the preset translation comparison table. Figure 6 shown.
[0102] S404: Compare the device category name and the device name to obtain a verification result.
[0103] The verification result indicates that the device category name and the device name are consistent, or that the device category name and the device name are inconsistent.
[0104] Specifically, assuming that the equipment category name is manual valve and the equipment name is straight-through pressure reducing, the equipment category name and the equipment name are compared, and the verification result is that the equipment category name and the equipment name are inconsistent.
[0105] S106: Determine the verification result of the object to be verified according to the verification result.
[0106] The verification result indicates that the object to be verified has passed the verification, or that the object to be verified has not passed the verification.
[0107] Among them, the verification result of the object to be verified is determined according to the verification result. Specifically, when the verification result indicates that the device category name and the device name are consistent, the verification result is that the object to be verified has passed the verification; when the verification result indicates that the device category name and the device name are inconsistent, the verification result is that the object to be verified has failed the verification.
[0108] Optionally, in another embodiment of the present application, the specific implementation of step S106 includes the following steps:
[0109] When the verification result is TRUE, it is determined that the verification result of the object to be verified is that the object to be verified passes the verification.
[0110] When the verification result is TRUE, it means that the device category name and the device name are consistent, and the verification result is determined to be that the object to be verified has passed the verification.
[0111] Optionally, the check result is the result in the category check table. Specifically, the category check table includes the bit number, category name, classification, the first two digits of the bit number (i.e. the first two digits of the number code), the type corresponding to the number, the result, and the result needs to be modified if it is not FALSE. The specific form of the category check table is, for example Figure 7 shown.
[0112] For details, see Figure 7In the table of row 77, the bit number value of the object to be inspected is GV30322, which is the annotation of the object to be inspected during the drawing of the P&ID diagram. According to the results of columns D and E, GV is a gate valve. At the same time, column B is the object to be inspected of this GV30322. When it was drawn, the category selected was GateValve. We know from column C that GateValve is a gate valve. The results of column C are consistent with those of column E, and the verification result is TRUE.
[0113] When the verification result is FALSE, it is determined that the verification result of the object to be verified is that the object to be verified has failed the verification.
[0114] When the verification result is FALSE, it means that the device category name and the device name are inconsistent, and the verification result is determined to be that the object to be verified has failed the verification.
[0115] Optionally, after step S106, if the verification result indicates that the object to be verified has not passed the verification, the failure of the object to be verified usually means that it does not meet the business rules or standards. In order to ensure the correctness and effectiveness of business operations, these rules must be followed. By modifying the object to be verified to make it meet the regulations, the smooth operation of the business can be ensured. Therefore, another embodiment of the present application provides a method for modifying the object to be verified, such as Figure 8 As shown, the following steps are included:
[0116] S801: When the verification result of the object to be verified is that the object to be verified fails the verification, the drawing number corresponding to the position number of the object to be verified is obtained.
[0117] It can be understood that when the verification result of the object to be verified is that the object to be verified fails the verification, the drawing number corresponding to the position number of the object to be verified is obtained, so that the object to be verified can be modified subsequently according to the drawing number corresponding to the position number of the object to be verified, so that the modified object to be verified passes the verification.
[0118] S802: Obtain the drawing of the object to be verified according to the drawing number corresponding to the position number.
[0119] Among them, the drawing of the object to be verified is obtained according to the drawing number corresponding to the position number, that is, the drawing of the object to be verified is jumped to according to the drawing number, and corresponding modifications are made in the drawing of the object to be verified.
[0120] For details, see Fig. 9, the 2163rd row of the table, the bit number of the object to be inspected is CG30684, the category name is GeneralPump, the equipment name (i.e., classification) is general pump, the target category code (i.e., the first two digits of the coding code) is CG, and the equipment category name corresponding to the target category code (i.e., the type corresponding to the number) is general centrifuge. It can be seen that if the equipment name and the equipment category name are different, the verification result is FALSE, and the drawing number corresponding to the bit number is A1902.030323BP001-PID-01. According to the drawing number A1902.030323BP001-PID-01 corresponding to the bit number, the drawing of the object to be inspected is obtained.
[0121] S803: Modify the position number or category name of the object to be inspected in the drawing of the object to be inspected to obtain a modified object to be inspected.
[0122] For details, see Fig.10 , modify the bit number of the object to be inspected in the drawing of the object to be inspected according to the category name, change the bit number of the object to be inspected to GP30684, and also change the target category code to GP. The equipment category name corresponding to the target category code is general pump, which is the modified object to be inspected.
[0123] Specifically, the category name of the object to be inspected can be modified in the drawing of the object to be inspected according to its position number. For example, if the position number of the object to be inspected is GV30684, the category name of the object to be inspected in the drawing of the object to be inspected can be modified to Check Valve according to its position number.
[0124] S804: The modified object to be inspected is used as the object to be inspected.
[0125] The modified object to be inspected is used as the object to be inspected, and the process returns to step S102 until the modified object to be inspected passes the verification.
[0126] It can be understood that the modified object to be inspected is used as the object to be inspected, and the process returns to step S102 to re-extract the position number, category name and drawing number corresponding to the position number of the object to be inspected, and re-checks the object to be inspected according to the position number and category name of the object to be inspected.
[0127] In summary, the bit number, category name and drawing number corresponding to the bit number of the object to be inspected are first extracted and stored in the category check list, and then the object to be inspected is checked through the category check list to obtain the check result. The user does not need to click on the object to be inspected one by one for verification, and the object to be inspected can be checked through the category check list, thereby improving the verification efficiency of the object to be inspected.
[0128] like Fig.11As shown, it is a schematic diagram of the architecture of a P&ID drawing verification device provided in an embodiment of the present application, and the verification device includes: an acquisition unit 100, an extraction unit 200, a deletion unit 300, an addition unit 400, a checking unit 500 and a determination unit 600.
[0129] The acquisition unit 100 is used to acquire the data to be inspected in the P&ID drawing; the data to be inspected at least includes the object to be inspected.
[0130] The extraction unit 200 is used to extract the data to be inspected and obtain the position number, category name and drawing number corresponding to the position number of the object to be inspected.
[0131] The extraction unit 200 is specifically used to: use regular expressions to match the data to be inspected to obtain matching results; filter out the position number, category name and drawing number corresponding to the position number of the object to be inspected from the matching results, and store the position number, category name and drawing number corresponding to the position number of the object to be inspected in a preset table.
[0132] The deleting unit 300 is used to delete the preset characters in the category name to obtain the target category name.
[0133] The adding unit 400 is used to add the bit number of the object to be inspected, the target category name and the drawing number corresponding to the bit number to the category check list.
[0134] The checking unit 500 is used to check the objects to be checked in the category checking table to obtain the checking results.
[0135] The verification unit 500 is specifically used for: deleting the numbers in the bit number of the object to be inspected to obtain the target category code; searching for the device category name corresponding to the target category code from the preset device coding table; searching for the device name corresponding to the category name of the object to be inspected from the preset translation comparison table; comparing the device category name and the device name to obtain the verification result.
[0136] The determination unit 600 is used to determine the verification result of the object to be verified according to the verification result.
[0137] The determination unit 600 is specifically used to: when the verification result is TRUE, determine that the verification result of the object to be verified is that the object to be verified has passed the verification; when the verification result is FALSE, determine that the verification result of the object to be verified is that the object to be verified has not passed the verification.
[0138] In summary, the bit number, category name and drawing number corresponding to the bit number of the object to be inspected are first extracted and stored in the category check list, and then the object to be inspected is checked through the category check list to obtain the check result. The user does not need to click on the object to be inspected one by one for verification, and the object to be inspected can be checked through the category check list, thereby improving the verification efficiency of the object to be inspected.
[0139] Preferably, combined Fig.11 As shown in the figure, the verification device also includes: a number acquisition unit, a drawing acquisition unit, a modification unit and a return unit.
[0140] The number acquisition unit is used to acquire the drawing number corresponding to the position number of the object to be inspected when the inspection result of the object to be inspected is that the object to be inspected has not passed the inspection.
[0141] The drawing acquisition unit is used to acquire the drawing of the object to be verified according to the drawing number corresponding to the position number.
[0142] The modification unit is used to modify the position number or category name of the object to be inspected in the drawing of the object to be inspected to obtain the modified object to be inspected.
[0143] The return unit is used to take the modified object to be inspected as the object to be inspected, and return to execute the step of extracting the data to be inspected to obtain the position number, category name and drawing number corresponding to the position number of the object to be inspected, until the modified object to be inspected is verified.
[0144] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0145] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0146] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for verifying a P&ID drawing, characterized in that: include: Get the data to be inspected in the P&ID drawing; The data to be inspected at least includes an object to be inspected; Extract the data to be inspected to obtain the bit number, category name and drawing number corresponding to the bit number of the object to be inspected; Deleting the preset characters in the category name to obtain the target category name; Add the bit number of the object to be inspected, the target category name and the drawing number corresponding to the bit number to a category checklist; Checking the objects to be inspected in the category check list to obtain a check result; The verification result of the object to be verified is determined according to the verification result.
2. The method according to claim 1, characterized in that The extracting of the data to be inspected to obtain the bit number, category name and drawing number corresponding to the bit number of the object to be inspected includes: Using regular expressions to match the data to be checked to obtain a matching result; The position number, category name and drawing number corresponding to the position number of the object to be inspected are filtered out from the matching results, and the position number, category name and drawing number corresponding to the position number of the object to be inspected are stored in a preset table.
3. The method according to claim 1, characterized in that The checking of the objects to be inspected in the category check list to obtain the checking result includes: Deleting the digits in the bit number of the object to be inspected to obtain the target category code; Find the device category name corresponding to the target category code from the preset device code table; Searching for a device name corresponding to the category name of the object to be inspected from a preset translation comparison table; The device category name and the device name are compared to obtain a verification result.
4. The method according to claim 1, characterized in that: Determining the verification result of the object to be verified according to the verification result includes: When the verification result is TRUE, determining that the verification result of the object to be verified is that the object to be verified passes the verification; When the verification result is FALSE, it is determined that the verification result of the object to be verified is that the object to be verified has failed the verification.
5. The method according to claim 1, characterized in that Also includes: When the verification result of the object to be verified is that the object to be verified fails the verification, obtaining the drawing number corresponding to the position number of the object to be verified; Obtaining the drawing of the object to be verified according to the drawing number corresponding to the position number; Modifying the position number or category name of the object to be inspected in the drawing of the object to be inspected to obtain a modified object to be inspected; The modified object to be inspected is used as the object to be inspected, and the step of extracting the data to be inspected is returned to obtain the position number, category name and drawing number corresponding to the position number of the object to be inspected, until the modified object to be inspected is verified.
6. A P&ID drawing verification device, characterized in that: include: An acquisition unit is used to acquire the data to be inspected in the P&ID drawing; The data to be inspected at least includes an object to be inspected; An extraction unit, used to extract the data to be inspected, and obtain the position number, category name and drawing number corresponding to the position number of the object to be inspected; a deleting unit, used for deleting preset characters in the category name to obtain a target category name; An adding unit, used for adding the bit number of the object to be inspected, the target category name and the drawing number corresponding to the bit number to the category check list; A checking unit, used for checking the objects to be checked in the category checking table to obtain a checking result; A determination unit is used to determine the verification result of the object to be verified according to the verification result.
7. The device according to claim 6, characterized in that The extraction unit is specifically used for: Using regular expressions to match the data to be checked to obtain a matching result; The position number, category name and drawing number corresponding to the position number of the object to be inspected are filtered out from the matching results, and the position number, category name and drawing number corresponding to the position number of the object to be inspected are stored in a preset table.
8. The device according to claim 6, characterized in that The checking unit is specifically used for: Deleting the digits in the bit number of the object to be inspected to obtain the target category code; Find the device category name corresponding to the target category code from the preset device code table; Searching for a device name corresponding to the category name of the object to be inspected from a preset translation comparison table; The device category name and the device name are compared to obtain a verification result.
9. The device according to claim 6, characterized in that The determining unit is specifically used for: When the verification result is TRUE, determining that the verification result of the object to be verified is that the object to be verified passes the verification; When the verification result is FALSE, it is determined that the verification result of the object to be verified is that the object to be verified has failed the verification.
10. The device according to claim 6, characterized in that Also includes: A number obtaining unit, used for obtaining a drawing number corresponding to the position number of the object to be checked when the verification result of the object to be checked is that the object to be checked has not passed the verification; A drawing acquisition unit, used to acquire the drawing of the object to be verified according to the drawing number corresponding to the position number; A modification unit, used for modifying the position number or category name of the object to be inspected in the drawing of the object to be inspected to obtain a modified object to be inspected; The return unit is used to take the modified object to be inspected as the object to be inspected, and return to execute the step of extracting the data to be inspected to obtain the position number, category name and drawing number corresponding to the position number of the object to be inspected, until the modified object to be inspected is verified.
Citation Information
Cited By
Drawing batch management method, electronic equipment and storage medium
CN121478999A
