Method and device for generating structural data of engineering drawing
By using the material database to verify the data in the engineering drawing structured data generation method, the problem of irregular bulk material design data information and low accuracy under the manual statistics and letter funding modes is solved, and the accuracy and standardization of the data are achieved. flexibility, improving design efficiency and traceability.
Patent Information
- Application Number
- CN202411412937.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-01-21
AI Technical Summary
In the prior art, when processing bulk material design data information through manual statistics and letter funding withdrawal mode, there are problems such as irregular data information, low accuracy, many omissions, untimely information flow, and poor traceability.
Put forward a method of generating the structured data of engineering drawings. By obtaining the encoding of the engineering drawings, determining the type of drawing, parsing the drawings, and using the material database to verify the data to generate structured data. This method includes obtaining modules, determining modules, parsing modules, verification modules, and generating modules to ensure the accuracy and specifications of the data.
The maximum record information is realized, and the time and people of the designer's artificial collection of summary material information are reduced, and the accuracy of design efficiency and material information is improved, and the data foundation is laid for the application management of the material database.
Smart Images

Figure CN119337447A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of nuclear power engineering design, and in particular to a method and device for generating structured data of engineering drawings. Background Art
[0002] Bulk materials for process pipelines are an important part of the materials of nuclear power plants. They are equivalent to the "blood vessels" of nuclear power plants, connecting thousands of key equipment and are the basis for realizing the functions of nuclear power plant process systems. The data of bulk materials for process pipelines mainly come from the production drawings of process pipelines and supports delivered to the installation unit for construction. The problem of mismatch between material design data and on-site requirements is common in various engineering projects. After analysis, the main reason is that the procurement cycle of bulk materials for nuclear power is long, the publication time of material procurement specifications is much earlier than the completion time of pipeline construction drawing design, and the first edition of procurement specifications is an estimated list, which is quite different from the final actual material requirements. With the deepening of design and the publication of construction drawings, material requirements are constantly changing, resulting in frequent material supplementary procurement orders, long production and delivery cycles, and affecting the progress of on-site installation; if the feedback of material changes is delayed, in order to ensure the progress of the project, the purchase order is placed according to the construction unit's demand report, but due to the lack of accurate design data verification, the construction unit's demand report has a large deviation, resulting in a large amount of material surplus after the project is completed, resulting in material waste. In general, the bulk material data is large and the information is complex, involving a large number of drawings and more drawing design changes. The traditional manual statistics and document funding model will lead to a variety of problems such as non-standard and inaccurate bulk material design data information, many omissions, untimely information flow, low matching rate, etc. Since there is no connection between the data, it cannot be combined with the design links and work processes, there is no effective process control, and the traceability and timeliness are poor.
[0003] The existing patent CN106777808B discloses a network resource generation method based on standardized CAD drawings, and its implementation process is: first design standardized drawings, and parse and present resource data based on the drawings including the completed CAD drawings of the pipeline network, and then generate accurate resource data through comparison, verification, and modification, and finally import it into the comprehensive resource management system for presentation and management. This solution is used to solve the problems of low CAD drawing recognition rate and automatic data import, but does not solve the problems of non-standard data information, low accuracy, many missing items, untimely information flow, and poor traceability when processing bulk material design data information through manual statistics and document funding models in the prior art.
[0004] The existing patent CN109740226A discloses a distribution network drawing system that is efficient and incorporates verification and assessment rules. The system includes a terminal management module, a data management module, a login management module, a verification and assessment module, and a drawing drawing management module, wherein the terminal management module is connected to the data management module, the login management module, and the drawing drawing management module, respectively, and the login management module is connected to the verification and assessment module. This solution is used to solve the problems in the drawing drawing process, but does not solve the problems in the prior art of processing bulk material design data information through manual statistics and letter funding mode, such as non-standard data information, low accuracy, many missing items, untimely information flow, and poor traceability.
[0005] In summary, the above two existing patents have not solved the problems in the prior art of processing bulk material design data information through manual statistics and letter funding models, such as non-standard data information, low accuracy, many missing items, untimely information flow, and poor traceability. Summary of the invention
[0006] Based on the above technical problems, the present invention proposes a method and device for generating structured data of engineering drawings, which solves the problems of non-standard data information, low accuracy, many missing items, untimely information flow and poor traceability that exist in the prior art when processing bulk material design data information through manual statistics and document funding models.
[0007] To achieve the above object, the present invention proposes a method for generating structured data of an engineering drawing.
[0008] A method for generating structured data of an engineering drawing, comprising:
[0009] Obtain the code of the engineering drawing, and determine the drawing type of the engineering drawing according to the code;
[0010] Determine the data structure template corresponding to the drawing type;
[0011] Analyze engineering drawings and obtain corresponding drawing data;
[0012] Use the database file corresponding to the drawing type in the material database to verify the drawing data;
[0013] According to the corresponding data structure template, the structured data of the verified drawing data is generated and output.
[0014] Furthermore, the code in the engineering drawing is obtained, and the drawing type of the engineering drawing is determined according to the code, including:
[0015] Coding includes internal coding and external coding of drawings;
[0016] When the external code includes the first preset character string and the internal code includes the second preset character string, determining that the drawing type of the engineering drawing is a process pipeline ISO drawing;
[0017] When the external code includes the third preset character string and the internal code includes the fourth preset character string, it is determined that the drawing type of the engineering drawing is a pipe support and hanger production drawing.
[0018] Furthermore, the data structure template corresponding to the drawing type is determined, including:
[0019] When the drawing type is a process piping ISO drawing, the data structure template corresponding to the process piping ISO drawing includes drawing information, item information, installation information and system pipeline design information;
[0020] When the drawing type is a pipe support and hanger production drawing, the data structure template corresponding to the pipe support and hanger production drawing includes drawing information, item information, installation information and bracket design information.
[0021] Furthermore, the engineering drawings are parsed and the corresponding drawing data is obtained, including:
[0022] When the drawing type of the engineering drawing is the process piping ISO drawing, the drawing title bar information, material detail column information, weld list and installation location information, system pipeline attribute information and main drawing design information in the process piping ISO drawing are parsed;
[0023] When the drawing type of the engineering drawing is a pipe support and hanger production drawing, the drawing title bar information, material detail column information, support and hanger attribute information and main drawing design information in the pipe support and hanger production drawing are parsed.
[0024] Furthermore, the drawing data is verified using the database file corresponding to the drawing type in the material database, including:
[0025] Identify the corresponding material items according to the item codes in the drawing data;
[0026] Search the database file corresponding to the drawing type for the standard material item and standard attribute information corresponding to the same item code, and verify the attribute information of the material item in the drawing data one by one according to the standard attribute information;
[0027] If the attribute information of the material item is inconsistent with the standard attribute information, the inconsistent attribute information in the material item is marked and the correct attribute information is prompted.
[0028] Further, using a database file corresponding to the drawing type in the material database to verify the drawing data, the method further includes:
[0029] According to the item code in the drawing data, find the standard item specification level and quality assurance level corresponding to the same item code in the standard attribute information;
[0030] Fill the standard item specification level and quality assurance level into the corresponding position of the material item in the drawing data.
[0031] Further, using a database file corresponding to the drawing type in the material database to verify the drawing data, the method further includes:
[0032] Check the text format of the material detail column, including whether the serial numbers of the material detail column are continuous, whether the serial numbers are repeated, whether the symbols are wrong, and whether the data format is standardized;
[0033] If the material details column has one or more of the following format irregularities, including discontinuous serial numbers, repeated serial numbers, incorrect representation symbols, and irregular data formats, the corresponding information will be marked and the reason for the irregular format will be prompted.
[0034] Further, using a database file corresponding to the drawing type in the material database to verify the drawing data, the method further includes:
[0035] Determine whether the drawing data contains item codes of flange materials, gasket materials and fastener materials at the same time;
[0036] If the drawing data simultaneously includes the item codes of the flange material, the gasket material and the fastener material, it is determined that the flange assembly design is complete;
[0037] If the item code of any one or more materials among the flange material, the gasket material and the fastener material is missing in the drawing data, the missing material items in the drawing data are prompted.
[0038] Furthermore, after verifying the drawing data, it also includes:
[0039] Determine the material type based on the item code in the drawing data;
[0040] Determine the material size based on the information in the material list;
[0041] Based on material type and material size, the material quantity units in the drawing data are converted into standard units using the preset material quantity unit conversion algorithm and the built-in calculation model.
[0042] To achieve the above object, the present invention provides a device for generating structured data of engineering drawings.
[0043] A device for generating structured data of an engineering drawing, comprising:
[0044] An acquisition module is used to acquire the code of the engineering drawing and determine the drawing type of the engineering drawing according to the code;
[0045] A determination module is used to determine the data structure template corresponding to the drawing type;
[0046] The parsing module is used to parse the engineering drawings and obtain the corresponding drawing data;
[0047] A verification module is used to verify drawing data by using a database file corresponding to the drawing type in the material database;
[0048] The generation module is used to generate and output the structured data of the verified drawing data according to the corresponding data structure template.
[0049] Furthermore, a module is obtained for:
[0050] Coding includes internal coding and external coding of drawings;
[0051] When the external code includes the first preset character string and the internal code includes the second preset character string, determining that the drawing type of the engineering drawing is a process pipeline ISO drawing;
[0052] When the external code includes the third preset character string and the internal code includes the fourth preset character string, it is determined that the drawing type of the engineering drawing is a pipe support and hanger production drawing.
[0053] Further, a module is determined for:
[0054] When the drawing type is a process piping ISO drawing, the data structure template corresponding to the process piping ISO drawing includes drawing information, item information, installation information and system pipeline design information;
[0055] When the drawing type is a pipe support and hanger production drawing, the data structure template corresponding to the pipe support and hanger production drawing includes drawing information, item information, installation information and bracket design information.
[0056] Furthermore, the parsing module is used to:
[0057] When the drawing type of the engineering drawing is the process piping ISO drawing, the drawing title bar information, material detail column information, weld list and installation location information, system pipeline attribute information and main drawing design information in the process piping ISO drawing are parsed;
[0058] When the drawing type of the engineering drawing is a pipe support and hanger production drawing, the drawing title bar information, material detail column information, support and hanger attribute information and main drawing design information in the pipe support and hanger production drawing are parsed.
[0059] Furthermore, the verification module is used to:
[0060] Identify the corresponding material items according to the item codes in the drawing data;
[0061] Search the database file corresponding to the drawing type for the standard material item and standard attribute information corresponding to the same item code, and verify the attribute information of the material item in the drawing data one by one according to the standard attribute information;
[0062] If the attribute information of the material item is inconsistent with the standard attribute information, the inconsistent attribute information in the material item is marked and the correct attribute information is prompted.
[0063] Furthermore, the verification module is also used to:
[0064] According to the item code in the drawing data, find the standard item specification level and quality assurance level corresponding to the same item code in the standard attribute information;
[0065] Fill the standard item specification level and quality assurance level into the corresponding position of the material item in the drawing data.
[0066] Furthermore, the verification module is also used to:
[0067] Check the text format of the material detail column, including whether the serial numbers of the material detail column are continuous, whether the serial numbers are repeated, whether the symbols are wrong, and whether the data format is standardized;
[0068] If the material details column has one or more of the following format irregularities, including discontinuous serial numbers, repeated serial numbers, incorrect representation symbols, and irregular data formats, the corresponding information will be marked and the reason for the irregular format will be prompted.
[0069] Furthermore, the verification module is also used to:
[0070] Determine whether the drawing data contains item codes of flange materials, gasket materials and fastener materials at the same time;
[0071] If the drawing data simultaneously includes the item codes of the flange material, the gasket material and the fastener material, it is determined that the flange assembly design is complete;
[0072] If the item code of any one or more materials among the flange material, the gasket material and the fastener material is missing in the drawing data, the missing material items in the drawing data are prompted.
[0073] Furthermore, a conversion module is included, which is used to:
[0074] Determine the material type based on the item code in the drawing data;
[0075] Determine the material size based on the information in the material list;
[0076] Based on the material type and material size, the material quantity units in the drawing data are converted into standard units using the preset material quantity unit conversion algorithm.
[0077] Based on the above technical solution, the present invention has at least the following beneficial effects:
[0078] 1. The present invention analyzes and collects drawings of process pipelines or supports and hangers, and uses database files corresponding to the drawing types to automatically verify the accuracy of various attribute parameters and data of material items, and generates a standardized material data structure. This method and device can record drawing information to the maximum extent, reduce the time and human errors of designers in manually collecting and summarizing material information, improve design efficiency and the accuracy of material information, and lay a data foundation for the application management of material databases.
[0079] 2. The data structure template corresponding to the process pipeline and support bracket materials preset in the present invention standardizes and integrates multi-attribute material information, pipeline and support bracket information and drawing information, which can not only ensure the standardization of material data information and the uniqueness of material items, but also increase the traceability of the source of material data, making it easier to track the origin of materials and the influencing factors of subsequent design changes on material changes. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:
[0081] Figure 1 A flow chart of a method for generating structured data of an engineering drawing according to an embodiment of the present invention;
[0082] Figure 2 It is a schematic diagram of the process pipeline material data structure template corresponding to the process pipeline ISO diagram;
[0083] Figure 3 A schematic diagram of a pipeline support and hanger material data structure template corresponding to a pipeline support and hanger production drawing;
[0084] Figure 4 A flow chart of verifying drawing data using a material database file in one embodiment of the present invention;
[0085] Figure 5 A flow chart of a method for generating structured data of an engineering drawing according to another embodiment of the present invention;
[0086] Figure 6The present invention is a schematic diagram of a device for generating structured data of an engineering drawing according to an embodiment of the present invention. DETAILED DESCRIPTION
[0087] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0088] The present invention is further described in detail below in conjunction with specific embodiments. These embodiments should not be construed as limiting the scope of protection claimed by the present invention.
[0089] Example
[0090] In order to solve the problems of non-standardized data information, low accuracy, many missing items, untimely information flow and poor traceability in the prior art, the present invention proposes a method and device for generating structured data of engineering drawings. By analyzing the information in the process pipeline ISO drawing and the pipeline support manufacturing drawing, the data information in the process pipeline and support drawings is treated as structured data as a data unit, so that the material item information is standardized and normalized, which is convenient for computer application management.
[0091] To achieve the above object, the present invention proposes a method for generating structured data of an engineering drawing.
[0092] like Figure 1 A flow chart of a method for generating structured data of an engineering drawing according to an embodiment of the present invention is shown in FIG. 1 , and the flow chart includes the following steps:
[0093] S1, obtaining the code of the engineering drawing, and determining the drawing type of the engineering drawing according to the code.
[0094] In this embodiment, CAD engineering drawings are taken as an example. After reading the engineering drawings, the frame position of the engineering drawings is located, and the code of the engineering drawings is obtained at the frame position. The code includes an internal code and an external code. When the external code contains a first preset string and the internal code contains a second preset string, the drawing type of the engineering drawing is determined to be a process pipeline ISO drawing. In this embodiment, the first preset string is 15SD, and the second preset string is BZS03. When the external code contains a third preset string and the internal code contains a fourth preset string, the drawing type of the engineering drawing is determined to be a pipeline support and hanger production drawing. The third preset string is 16SD, and the fourth preset string is BZS02.
[0095] S2, determining the data structure template corresponding to the drawing type.
[0096] After determining the drawing type of the engineering drawing, match and call the corresponding data structure template. Specifically, when the drawing type is a process pipeline ISO drawing, the data structure template corresponding to the process pipeline ISO drawing includes drawing information, item information, installation information and system pipeline design information, such as Figure 2 The data structure template of the process pipeline material corresponding to the process pipeline ISO drawing is shown. When the drawing type is a pipeline support and hanger production drawing, the data structure template corresponding to the pipeline support and hanger production drawing includes drawing information, item information, installation information and bracket design information, such as Figure 3 The pipe support and hanger material data structure template corresponding to the pipe support and hanger production drawing is shown.
[0097] S3, parse the engineering drawings and obtain the corresponding drawing data.
[0098] When the drawing type of the engineering drawing is a process pipeline ISO drawing, the process pipeline ISO drawing is identified and parsed. By locking and identifying the fixed text feature values, the five areas of the process pipeline ISO drawing are located, namely the drawing title bar information, material detail column information, weld list and installation location information, system pipeline attribute information and main drawing design information. Specifically, the drawing title bar information of the process piping ISO drawing includes basic drawing parameter information such as project number, internal and external drawing codes, version, drawing type, release time, drawing name, and drawing size, which can be used to trace the source and time schedule of material item requirements; the material detail column information of the process piping ISO drawing includes serial number, name and material (i.e., specific specification parameters of material items), nominal diameter, item code, quantity, unit weight, and total weight; the weld list and installation location information includes factory weld number, on-site weld number, unit number, installation area, and room number, which can be used for positioning statistical analysis; system pipeline attribute information includes medium, pipeline grade, design temperature, test pressure, insulation thickness, specification grade, cleanliness, etc.; the main drawing design information includes pipeline number, connection information, support bracket number, pipe section number, pipe section length, etc.
[0099] When the drawing type of the engineering drawing is the pipe support and hanger production drawing, the pipe support and hanger production drawing is identified and parsed. The identification area corresponding to the pipe support and hanger production drawing includes four parts, namely the drawing title bar information, material detail column information, pipe support and hanger attribute information and main drawing design information. The drawing title bar information includes the project number, internal and external drawing code, version, drawing type, release time, drawing name, drawing width and other basic drawing parameter information, which can be used to trace the source and time progress of material item requirements. The pipe support and hanger drawing material detail column information includes serial number, name and code, quantity, material, unit weight, total weight, remarks, item code; the support and hanger attribute information includes the three-dimensional drawing number of the pipeline where the support and hanger is located, the drawing number of the bracket position drawing where the support and hanger is located, the specification level, and the bracket function; the main drawing design information includes the support and hanger root wall number, the relevant wall number, the pipeline number, the location elevation, the total frame number (if any), and the embedded plate number.
[0100] After parsing the engineering drawings and obtaining the corresponding drawing data, the drawing data is stored in the data cache layer. Among them, the name and material, name and code information in the material detail column information are divided into independent information according to each attribute after parsing and stored in the data cache layer.
[0101] S4, using the database file corresponding to the drawing type in the material database to verify the drawing data.
[0102] Similar to the data structure template, when verifying the drawing data, different drawing types correspond to different database files. Figure 4 As shown, this step includes the following three sub-steps:
[0103] S401, identifying corresponding material items according to item codes in drawing data.
[0104] S402, searching for standard material items and standard attribute information corresponding to the same item code in a database file corresponding to the drawing type, and verifying the attribute information of the material items in the drawing data one by one according to the standard attribute information.
[0105] Specifically, the attributes of pipeline material items include material name, wall thickness (pressure level), manufacturing form, connection form, specification standard, material, nominal diameter, item code, specification level, quality assurance level, unit weight, etc.; the attributes of pipeline support and hanger material items include material name and model, material, item code, unit weight, specification level, quality assurance level, etc. Among them, the specification level and quality assurance level of material items are not reflected in the drawings. For example, the manufacturing form includes seamless, welding and forging, etc.; the connection form includes butt welding, socket welding and threaded connection, etc.; the wall thickness unit includes pressure level, pipe schedule (SCH), millimeter, etc.; the specification standards include B36.10M, B36.19M, B16.5, B16.9, B16.11, etc.
[0106] S403, if the attribute information of the material item is inconsistent with the standard attribute information, the inconsistent attribute information in the material item is marked and the correct attribute information is prompted.
[0107] When the attribute information of a material item is inconsistent with the standard attribute information, it indicates that the drawing data of the current engineering drawing has erroneous attributes. In this step, the inconsistent attribute information is marked to prompt the user of the erroneous attributes of the material and to modify it.
[0108] In another embodiment of the present invention, the drawing data is verified by using a database file corresponding to the drawing type in the material database, and the specification level and quality assurance level of the material items in the drawing data are filled in to improve the drawing data. The specific process is as follows: S404, according to the item code in the drawing data, the standard item specification level and quality assurance level corresponding to the same item code are searched in the standard attribute information;
[0109] S405, filling the standard item specification level and quality assurance level into the corresponding position of the material item in the drawing data.
[0110] In another embodiment of the present invention, the drawing data is verified by using a database file corresponding to the drawing type in the material database, and the method further includes: S406, performing a text format check on the material detail column, the text format check including whether the material detail column serial number is continuous, whether the serial number is repeated, whether the representation symbol is wrong, and whether the data format is standardized. If the material detail column has one or more of the following non-standard formats, such as non-continuous serial number, repeated serial number, wrong representation symbol, and non-standard data format, the text format check fails, the non-standard text information is marked, and the reason for the non-standard text format is prompted.
[0111] In another embodiment of the present invention, further, the drawing data is verified by using a database file corresponding to the drawing type in the material database, and it also includes verifying whether there are missing items in the drawing data. The verification process includes: S407, judging whether the drawing data contains the item codes of flange materials, gasket materials and fastener materials at the same time; S408, if the drawing data contains the item codes of flange materials, gasket materials and fastener materials at the same time, it is determined that the flange set design is complete; S409, if the drawing data lacks the item codes of any one or more materials among flange materials, gasket materials and fastener materials, then the missing material items in the drawing data are prompted.
[0112] S5, generating and outputting structured data of the verified drawing data according to the corresponding data structure template.
[0113] like Figure 5 As shown, in another embodiment of the present invention, after verifying the drawing data, before generating and outputting the structured data of the verified drawing data, the material quantity units in the drawing data are also converted to unify the statistical basis for material data analysis, so as to facilitate the statistical processing and application of material data. Specifically, the following steps are included:
[0114] S6, determine the material type based on the item code in the drawing data.
[0115] S7, determine the material size based on the material details list information.
[0116] S8, based on the material type and material size, using a preset material quantity unit conversion algorithm, converting the material quantity unit in the drawing data into a standard unit.
[0117] Table 1 shows the material types corresponding to the two drawing types, as well as the judgment rules, calculation types, statistical units, quantity calculation formulas, drawing quantities, and related material detail samples and statistical quantity samples corresponding to the material types. For the pipeline ISO drawing corresponding to serial number 1, when the item coding format in its drawing data is FBS00***, it can be determined that the corresponding material type is screw; determine the material size based on the name and material column in its material detail column information, and identify the field L. From the example corresponding to serial number 1, it can be seen that the item code is FBS00138, and the corresponding material type is screw, and the length L is 150. The quantity calculation formula corresponding to the screw is (L×10 -3 )×number of drawings. Since the number of drawings in this example is 16, the number of materials can be converted to (150×10 -3)×16=2.4m. The judgment rules and calculation types for the materials corresponding to serial numbers 2 to 4 are similar to those for serial number 1, so the corresponding judgment and calculation process will not be repeated here. For the steel plate material type of the support and hanger production drawing of serial number 5, the corresponding calculation type is area calculation. First, identify the item code in the drawing data. If the item code format is: FWB00***, then the corresponding material type is steel plate (sealing plate, blocking plate, partition, reinforcement plate). Then, according to the name in the drawing data and the following format of the material column: number (length) × number (width) × number (thickness) or Ф number (diameter), e = number (thickness), determine the corresponding material size. For example, the example corresponding to serial number 5 is FWB00256 partition, Ф122, e=10, from which it can be obtained that the diameter of the material is 122 and the thickness is 10. According to the corresponding calculation formula π×(diameter / 2×10 -3 )×(diameter / 2×10 -3 )×number of drawings, the corresponding number of materials can be converted to π×(122 / 2×10 -3 )×(122 / 2×10 -3 )×1=0.01㎡.
[0118] Table 1 Statistical algorithm for process pipeline and support material data
[0119]
[0120]
[0121] To achieve the above object, the present invention provides a device for generating structured data of engineering drawings.
[0122] like Figure 6 A schematic diagram of a device for generating structured data of an engineering drawing according to an embodiment of the present invention is shown in FIG. 1 , wherein the device includes an acquisition module, a determination module, a parsing module, a verification module and a generation module. The functions of each module will be described in detail below.
[0123] The acquisition module 61 is used to acquire the code of the engineering drawing and determine the drawing type of the engineering drawing according to the code.
[0124] Furthermore, the acquisition module 61 is used to:
[0125] Drawing codes include internal codes and external codes.
[0126] When the external code includes a first preset character string and the internal code includes a second preset character string, it is determined that the drawing type of the engineering drawing is a process pipeline ISO drawing.
[0127] When the external code includes the third preset character string and the internal code includes the fourth preset character string, it is determined that the drawing type of the engineering drawing is a pipe support and hanger production drawing.
[0128] The determination module 62 is used to determine the data structure template corresponding to the drawing type.
[0129] Further, the determination module 62 is used to:
[0130] When the drawing type is a process piping ISO drawing, the data structure template corresponding to the process piping ISO drawing includes drawing information, item information, installation information and system pipeline design information.
[0131] When the drawing type is a pipe support and hanger production drawing, the data structure template corresponding to the pipe support and hanger production drawing includes drawing information, item information, installation information and bracket design information.
[0132] The parsing module 63 is used to parse the engineering drawings and obtain corresponding drawing data.
[0133] Furthermore, the parsing module 63 is used to:
[0134] When the drawing type of the engineering drawing is a process piping ISO drawing, the drawing title bar information, material detail column information, weld list and installation location information, system pipeline attribute information and main drawing design information in the process piping ISO drawing are parsed.
[0135] When the drawing type of the engineering drawing is a pipe support and hanger production drawing, the drawing title bar information, material detail column information, support and hanger attribute information and main drawing design information in the pipe support and hanger production drawing are parsed.
[0136] The verification module 64 is used to verify the drawing data by using the database file corresponding to the drawing type in the material database.
[0137] Furthermore, the verification module 64 is used to:
[0138] Identify the corresponding material items based on the item codes in the drawing data.
[0139] Search the database file corresponding to the drawing type for the standard material item and standard attribute information corresponding to the same item code, and verify the attribute information of the material item in the drawing data one by one based on the standard attribute information.
[0140] If the attribute information of the material item is inconsistent with the standard attribute information, the inconsistent attribute information in the material item is marked.
[0141] Furthermore, the verification module 64 is also used for:
[0142] Based on the item code in the drawing data, search the standard item specification level and quality assurance level corresponding to the same item code in the standard attribute information.
[0143] Fill the standard item specification level and quality assurance level into the corresponding position of the material item in the drawing data.
[0144] Furthermore, the verification module 64 is also used for:
[0145] Perform a text format check on the material details column. The text format check includes whether the serial numbers in the material details column are continuous, whether the serial numbers are repeated, whether the symbols are incorrect, and whether the data format is standardized.
[0146] If the material details column has one or more of the following format irregularities, including discontinuous serial numbers, repeated serial numbers, incorrect representation symbols, and irregular data formats, the corresponding information will be marked and the reason for the irregular format will be prompted.
[0147] Furthermore, the verification module 64 is also used for:
[0148] Determine whether the drawing data contains the item codes of flange materials, gasket materials and fastener materials at the same time;
[0149] If the drawing data contains the item codes of flange materials, gasket materials and fastener materials at the same time, it is determined that the flange assembly design is complete;
[0150] If the item code of any one or more materials among flange material, gasket material and fastener material is missing in the drawing data, the missing material items in the drawing data will be prompted.
[0151] The generating module 65 is used to generate and output the structured data of the verified drawing data according to the corresponding data structure template.
[0152] Furthermore, a conversion module 66 is included, which is used to:
[0153] Determine the material type based on the item code in the drawing data.
[0154] Determine material dimensions based on parts list information.
[0155] Based on the material type and material size, the material quantity units in the drawing data are converted into standard units using the preset material quantity unit conversion algorithm.
[0156] It should be understood that the description of a device for generating structured data of an engineering drawing is consistent with the description of a corresponding method for generating structured data of an engineering drawing, so it will not be described in detail in this embodiment.
[0157] In summary, it can be seen from the above description that the above embodiments of the present invention achieve the following technical effects:
[0158] 1. The present invention analyzes and collects drawings of process pipelines or supports and hangers, and uses database files corresponding to the drawing types to automatically verify the accuracy of various attribute parameters and data of material items, and generates a standardized material data structure. This method and device can record drawing information to the maximum extent, reduce the time and human errors of designers in manually collecting and summarizing material information, improve design efficiency and the accuracy of material information, and lay a data foundation for the application management of material databases.
[0159] 2. The data structure template corresponding to the process pipeline and support bracket materials preset in the present invention standardizes and integrates multi-attribute material information, pipeline and support bracket information and drawing information, which can not only ensure the standardization of material data information and the uniqueness of material items, but also increase the traceability of the source of material data, making it easier to track the origin of materials and the influencing factors of subsequent design changes on material changes.
[0160] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0161] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0162] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.
[0163] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0164] It should be noted that, in the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
Claims
1. A method for generating structured data of an engineering drawing, characterized in that: include: Obtaining a code of an engineering drawing, and determining a drawing type of the engineering drawing according to the code; Determine the data structure template corresponding to the drawing type; Analyze the engineering drawings and obtain corresponding drawing data; Verify the drawing data by using a database file corresponding to the drawing type in a material database; According to the corresponding data structure template, the structured data of the verified drawing data is generated and output.
2. The method according to claim 1, characterized in that Acquiring a code of an engineering drawing and determining a drawing type of the engineering drawing according to the code includes: The coding includes internal coding and external coding of the drawing; When the external code includes a first preset character string and the internal code includes a second preset character string, determining that the drawing type of the engineering drawing is a process pipeline ISO drawing; When the external code includes a third preset character string and the internal code includes a fourth preset character string, it is determined that the drawing type of the engineering drawing is a pipeline support and hanger manufacturing drawing.
3. The method according to claim 2, characterized in that Determine the data structure template corresponding to the drawing type, including: When the drawing type is a process piping ISO drawing, the data structure template corresponding to the process piping ISO drawing includes drawing information, item information, installation information and system pipeline design information; When the drawing type is the pipeline support and hanger production drawing, the data structure template corresponding to the pipeline support and hanger production drawing includes drawing information, item information, installation information and bracket design information.
4. The method according to claim 2, characterized in that: Parse the engineering drawings and obtain corresponding drawing data, including: When the drawing type of the engineering drawing is a process piping ISO drawing, parsing the drawing title bar information, material detail bar information, weld list and installation location information, system pipeline attribute information and main drawing design information in the process piping ISO drawing; When the drawing type of the engineering drawing is a pipe support and hanger production drawing, the drawing title bar information, material detail bar information, support and hanger attribute information and main drawing design information in the pipe support and hanger production drawing are parsed.
5. The method according to claim 4, characterized in that Verifying the drawing data by using a database file corresponding to the drawing type in the material database includes: Identify corresponding material items according to the item codes in the drawing data; Searching for standard material items and standard attribute information corresponding to the same item code in a database file corresponding to the drawing type, and verifying the attribute information of the material items in the drawing data one by one according to the standard attribute information; If the attribute information of the material item is inconsistent with the standard attribute information, the inconsistent attribute information in the material item is marked and the correct attribute information is prompted.
6. The method according to claim 5, characterized in that Verifying the drawing data by using a database file corresponding to the drawing type in a material database, further comprising: According to the item code in the drawing data, searching the standard item specification level and quality assurance level corresponding to the same item code in the standard attribute information; The standard item specification level and the quality assurance level are filled into the corresponding positions of the material items in the drawing data.
7. The method according to claim 5, characterized in that Verifying the drawing data by using a database file corresponding to the drawing type in a material database, further comprising: Performing a text format check on the material detail column, the text format check includes whether the serial numbers in the material detail column are continuous, whether the serial numbers are repeated, whether the symbols are wrong, and whether the data format is standardized; If the material details column has one or more of the following format irregularities, including discontinuous serial numbers, repeated serial numbers, incorrect representation symbols, and irregular data formats, the corresponding information will be marked and the reason for the irregular format will be prompted.
8. The method according to claim 5, characterized in that Verifying the drawing data by using a database file corresponding to the drawing type in a material database, further comprising: Determine whether the drawing data contains item codes of flange materials, gasket materials and fastener materials at the same time; If the drawing data simultaneously includes the item codes of the flange material, the gasket material and the fastener material, it is determined that the flange assembly design is complete; If the item code of any one or more materials among the flange material, the gasket material and the fastener material is missing in the drawing data, the missing material items in the drawing data are prompted.
9. The method according to any one of claims 4 to 8, characterized in that: After verifying the drawing data, the method further includes: Determining the material type according to the item code in the drawing data; Determine the material size according to the material list information; Based on the material type and the material size, the material quantity unit in the drawing data is converted into a standard unit using a preset material quantity unit conversion algorithm.
10. A device for generating structured data of engineering drawings, characterized in that: include: An acquisition module, used to acquire a code of an engineering drawing and determine a drawing type of the engineering drawing according to the code; A determination module, used to determine the data structure template corresponding to the drawing type; A parsing module, used to parse the engineering drawings and obtain corresponding drawing data; A verification module, used for verifying the drawing data by using a database file corresponding to the drawing type in a material database; The generation module is used to generate and output the structured data of the verified drawing data according to the corresponding data structure template.
11. The device according to claim 10, characterized in that The acquisition module is used to: The coding includes internal coding and external coding of the drawing; When the external code includes a first preset character string and the internal code includes a second preset character string, determining that the drawing type of the engineering drawing is a process pipeline ISO drawing; When the external code includes a third preset character string and the internal code includes a fourth preset character string, it is determined that the drawing type of the engineering drawing is a pipeline support and hanger manufacturing drawing.
12. The device according to claim 11, characterized in that The determining module is used to: When the drawing type is a process piping ISO drawing, the data structure template corresponding to the process piping ISO drawing includes drawing information, item information, installation information and system pipeline design information; When the drawing type is the pipeline support and hanger production drawing, the data structure template corresponding to the pipeline support and hanger production drawing includes drawing information, item information, installation information and bracket design information.
13. The device according to claim 11, characterized in that The parsing module is used to: When the drawing type of the engineering drawing is a process piping ISO drawing, parsing the drawing title bar information, material detail bar information, weld list and installation location information, system pipeline attribute information and main drawing design information in the process piping ISO drawing; When the drawing type of the engineering drawing is a pipe support and hanger production drawing, the drawing title bar information, material detail bar information, support and hanger attribute information and main drawing design information in the pipe support and hanger production drawing are parsed.
14. The device according to claim 13, characterized in that The verification module is used for: Identify corresponding material items according to the item codes in the drawing data; Searching for standard material items and standard attribute information corresponding to the same item code in a database file corresponding to the drawing type, and verifying the attribute information of the material items in the drawing data one by one according to the standard attribute information; If the attribute information of the material item is inconsistent with the standard attribute information, the inconsistent attribute information in the material item is marked and the correct attribute information is prompted.
15. The device according to claim 14, characterized in that The verification module is further used for: According to the item code in the drawing data, searching the standard item specification level and quality assurance level corresponding to the same item code in the standard attribute information; The standard item specification level and the quality assurance level are filled into the corresponding positions of the material items in the drawing data.
16. The device according to claim 14, characterized in that The verification module is further used for: Performing a text format check on the material detail column, the text format check includes whether the serial numbers in the material detail column are continuous, whether the serial numbers are repeated, whether the symbols are wrong, and whether the data format is standardized; If the material details column has one or more of the following format irregularities, including discontinuous serial numbers, repeated serial numbers, incorrect representation symbols, and irregular data formats, the corresponding information will be marked and the reason for the irregular format will be prompted.
17. The device according to claim 14, characterized in that The verification module is further used for: Determine whether the drawing data contains item codes of flange materials, gasket materials and fastener materials at the same time; If the drawing data simultaneously includes the item codes of the flange material, the gasket material and the fastener material, it is determined that the flange assembly design is complete; If the item code of any one or more materials among the flange material, the gasket material and the fastener material is missing in the drawing data, the missing material items in the drawing data are prompted.
18. The device according to any one of claims 13 to 17, characterized in that Also includes conversion modules for: Determining the material type according to the item code in the drawing data; Determine the material size according to the material list information; Based on the material type and the material size, the material quantity unit in the drawing data is converted into a standard unit using a preset material quantity unit conversion algorithm.
Citation Information
Patent Citations
A method for generating online resources based on standardized CAD drawings
CN106777808B
A power distribution network drawing drawing system efficient and integrated with verification and assessment rules
CN109740226A
Cited By
Industrial drawing structured extraction method, device and equipment and medium
CN121980055A
A method, apparatus, device and medium for industrial drawing structured extraction
CN121980055B