CN112580122B - Drawing processing method, device, computer equipment and storage medium - Google Patents

Drawing processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN112580122B
CN112580122B CN202011543948.3A CN202011543948A CN112580122B CN 112580122 B CN112580122 B CN 112580122B CN 202011543948 A CN202011543948 A CN 202011543948A CN 112580122 B CN112580122 B CN 112580122B
Authority
CN
China
Prior art keywords
file
preset
processed
data
generating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011543948.3A
Other languages
Chinese (zh)
Other versions
CN112580122A (en
Inventor
陈治新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
YICHANG DAMEN SHIP CO Ltd
Original Assignee
YICHANG DAMEN SHIP CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by YICHANG DAMEN SHIP CO Ltd filed Critical YICHANG DAMEN SHIP CO Ltd
Priority to CN202011543948.3A priority Critical patent/CN112580122B/en
Publication of CN112580122A publication Critical patent/CN112580122A/en
Application granted granted Critical
Publication of CN112580122B publication Critical patent/CN112580122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/58Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/14Pipes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computational Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Human Computer Interaction (AREA)
  • Automation & Control Theory (AREA)
  • Architecture (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a drawing processing method, a device, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring a source dwg file and a source xml file of a drawing to be processed; generating a preprocessing file with translation data from the source dwg file of the drawing to be processed; acquiring coordinate parameters of a target reference point in the drawing to be processed according to the source xml file; generating a production data table according to the coordinate parameters and a preset database; adding the production data table to a first preset position in the pretreatment file to obtain a target dwg file of the drawing to be treated; therefore, the invention solves the problem of secondary treatment of the piping drawing by manpower in the prior art, improves the working efficiency and the accuracy of the drawing treatment, and saves the production cost.

Description

Drawing processing method, device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of drawing processing, in particular to a drawing processing method, a drawing processing device, computer equipment and a storage medium.
Background
The pipeline system is an important component of ship construction, and 'Cad-material' is a kind of pipeline modeling graphic software, but a Spool graph (pipe ticket graph) and an ISO graph (pipe installation coordinate graph) generated by the pipeline system for pipeline production lack much necessary production information, and are British, and cannot be directly used for shipyard production, and the drawing must be processed for a second time before the production can be issued.
The work of secondary processing of each drawing includes translating original drawings, adding contents such as generating an information table and compiling a bill of materials, but at present, the manual processing is generally carried out on each drawing by technicians, and the processing time is long due to large workload, errors are easy to occur, and the production of a pipeline system is influenced.
Disclosure of Invention
Aiming at the defects in the prior art, the drawing processing method, the device, the computer equipment and the storage medium provided by the invention solve the problem of secondary processing of the piping drawing by manpower in the prior art, improve the working efficiency and the accuracy of drawing processing and save the production cost.
In a first aspect, the present invention provides a drawing processing method, where the method includes: acquiring a source dwg file and a source xml file of a drawing to be processed; generating a preprocessing file with translation data from the source dwg file of the drawing to be processed; acquiring coordinate parameters of a target reference point in the drawing to be processed according to the source xml file; generating a production data table according to the coordinate parameters and a preset database; and adding the production data table to a first preset position in the pretreatment file to obtain a target dwg file of the drawing to be treated.
Optionally, generating a preprocessing file with translation data from the source dwg file of the drawing to be processed includes: extracting text data to be translated and position information of the text data to be translated in a source dwg file; obtaining translation data corresponding to the text data to be translated according to the text data to be translated and a preset translation database; and writing the translated text data into the position information of the text data to be translated, and generating a preprocessing file with the translated text data.
Optionally, when the text data to be translated does not exist in the preset translation database, the method further includes: translating the text data to be translated through online translation to obtain translation data corresponding to the text data to be translated; and updating the text data to be translated and the translation data to the preset translation database.
Optionally, when the production data table is an elbow data table, generating the production data table according to the coordinate parameter and a preset database includes: according to the coordinate parameters and a preset equipment database, calculating bent pipe data corresponding to the target reference point; and generating a bent pipe data table according to the bent pipe data.
Optionally, when the production data table is a blanking table, the production data table is generated according to the coordinate parameters and a preset database, and the method further includes: acquiring the material of a target reference object in the drawing to be processed according to the source xml file; calculating the blanking length of each pipe fitting according to the coordinate parameters and a preset pipe fitting database; and generating a blanking table according to the blanking length of each pipe fitting and the material of the target reference object.
Optionally, after adding the production data table to a preset position in the preprocessing file to obtain a target dwg file of the drawing to be processed, the method further includes: extracting a production data table in each target dwg file; and classifying and summarizing materials in all the production data tables to generate a bill of materials table in a preset format.
Optionally, after generating the preprocessing file with the translation data from the source dwg file of the drawing to be processed, the method further includes: generating a working hour table according to the working procedure name, the consumed working hours and the responsible person; and adding the time table to a second preset position in the preprocessing file to generate a target dwg file of the drawing to be processed.
In a second aspect, the present invention provides a drawing processing apparatus, the apparatus comprising: the file acquisition module is used for acquiring a source dwg file and a source xml file of the drawing to be processed; the file generation module is used for generating a source dwg file of the drawing to be processed into a preprocessing file with translation data; the parameter acquisition module is used for acquiring coordinate parameters of a target reference point in the drawing to be processed according to the source xml file; the data table generation module is used for generating a production data table according to the coordinate parameters and a preset database; and the adding module is used for adding the production data table to a first preset position in the pretreatment file to obtain a target dwg file of the drawing to be treated.
In a third aspect, the present invention provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring a source dwg file and a source xml file of a drawing to be processed; generating a preprocessing file with translation data from the source dwg file of the drawing to be processed; acquiring coordinate parameters of a target reference point in the drawing to be processed according to the source xml file; generating a production data table according to the coordinate parameters and a preset database; and adding the production data table to a first preset position in the pretreatment file to obtain a target dwg file of the drawing to be treated.
In a fourth aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of: acquiring a source dwg file and a source xml file of a drawing to be processed; generating a preprocessing file with translation data from the source dwg file of the drawing to be processed; acquiring coordinate parameters of a target reference point in the drawing to be processed according to the source xml file; generating a production data table according to the coordinate parameters and a preset database; and adding the production data table to a first preset position in the pretreatment file to obtain a target dwg file of the drawing to be treated.
Compared with the prior art, the invention has the following beneficial effects:
According to the invention, the dwg format file of the drawing to be processed is automatically translated, so that a preprocessing file with Chinese translation is obtained; according to the data obtained by the xml file of the drawing to be processed, automatically generating and adding a data table for the preprocessing file to obtain a target drawing which can be used for generation, completing the conversion from a design drawing to a production drawing, and realizing the secondary processing of the drawing; the invention solves the problem of secondary treatment of the piping drawings by manpower in the prior art, greatly improves the working efficiency and the accuracy of the drawing treatment, and saves the production cost.
Drawings
Fig. 1 is a schematic flow chart of a drawing processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram showing a target dwg file according to an embodiment of the invention;
fig. 3 is a schematic structural diagram of a drawing processing device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Fig. 1 is a schematic flow chart of a drawing processing method according to an embodiment of the present invention; as shown in fig. 1, the drawing processing method specifically includes the following steps:
step S101, a source dwg file and a source xml file of a drawing to be processed are obtained.
In this embodiment, the to-be-processed drawing includes, but is not limited to, a Spool drawing and an ISO drawing, and each to-be-processed drawing includes documents in two formats dwg and xml.
Step S102, generating a preprocessing file with translation data from the source dwg file of the drawing to be processed.
Further, generating a preprocessing file with translation data from the source dwg file of the drawing to be processed specifically includes: extracting text data to be translated and position information of the text data to be translated in a source dwg file; obtaining translation data corresponding to the text data to be translated according to the text data to be translated and a preset translation database; and writing the translated text data into the position information of the text data to be translated, and generating a preprocessing file with the translated text data.
The special characters of English words in the Spool diagram and the ISO diagram are strong and the number of the English words is limited. Aiming at the characteristics, an Excel document is used as a word database, namely a preset translation database, all encountered English words in the graph are added into the preset Chinese database, the translated Chinese translations of the English words are filled in corresponding rows of the English words, and the English words in the database can be added at any time in the later stage.
When translating a drawing to be processed, firstly, reading English and Chinese words of a database into a memory in pairs; and then opening a Spool diagram and an ISO diagram which are added in advance into a list box and need to be translated in a dwg format one by one, searching all text objects in a drawing one by one, comparing each time a text object is searched with English words in a database one by one, and if the same English text exists in the database, replacing the English text with a Chinese translation corresponding to the English text at the same position so as to realize the translation function, thereby obtaining a preprocessing file with the Chinese translation. In this embodiment, the translation efficiency may be improved by locally storing the preset translation database in the format of the Excel document.
In this embodiment, when the text data to be translated does not exist in the preset translation database, the method further includes: translating the text data to be translated through online translation to obtain translation data corresponding to the text data to be translated; and updating the text data to be translated and the translation data to the preset translation database.
Specifically, when a new word exists in the drawing to be processed or is not updated to the preset translation database in time, the translation data of the text data to be translated can be obtained through manual translation, machine translation or on-line translation, and the text data to be translated and the corresponding translation data are automatically stored in the preset translation database in pairs, so that the automatic update of the preset translation database is realized.
And step S103, acquiring coordinate parameters of a target reference point in the drawing to be processed according to the source xml file.
In this embodiment, the drawing to be processed includes a target reference object, where the target reference object includes a plurality of target reference points, the target reference points include a pipe end point and a pipe bending point, and the coordinate parameter is a coordinate value of the pipe end point or the pipe bending point at an actual ship use position.
Step S104, a production data table is generated according to the coordinate parameters and a preset database.
Further, when the production data table is a bent pipe data table, generating a production data table according to the coordinate parameters and a preset database, including: according to the coordinate parameters and a preset equipment database, calculating bent pipe data corresponding to the target reference point; and generating a bent pipe data table according to the bent pipe data.
It should be noted that, in this embodiment, an "Access" database is used to store equipment parameters of the factory pipe bender, where the equipment parameters include, but are not limited to, a bending radius, a head clamping length, a tail clamping length, a height of the pipe bender, and the like corresponding to various pipe diameters, and the Access database storing the equipment parameters of the pipe bender is used as the preset equipment database.
Before the pipe bending data table is drawn, reading pipe bender parameters in the preset equipment database into a memory; when the pipe bending data is calculated, coordinate values of a pipe end point and a pipe bending point are read from a bloom file in an xml format, and the pipe bending data is calculated by using pipe bending parameters corresponding to the current pipe diameter; and then drawing a bent pipe data table by calculating the obtained bent pipe data.
Further, when the production data table is a blanking table, the production data table is generated according to the coordinate parameters and a preset database, and the method further includes: acquiring the material of a target reference object in the drawing to be processed according to the source xml file; calculating the blanking length of each pipe fitting according to the coordinate parameters and a preset pipe fitting database; and generating a blanking table according to the blanking length of each pipe fitting and the material of the target reference object.
It should be noted that, in this embodiment, an "Access" database is used to store the pipe parameters, where the pipe parameters include, but are not limited to, flanges, elbows, length sizes of concentric diameters, and the like corresponding to various pipe diameters, and the Access database storing the pipe parameters is used as the preset pipe database. Reading pipe fitting parameters in a database into a memory before generating the blanking table; when the blanking length of the pipe is calculated, coordinate values of the pipe end point and the pipe bending point and the pipe material are read from a bloom file in an xml format, and the blanking length of each section of pipe is calculated by using pipe fitting parameters corresponding to the current pipe diameter. And then drawing a blanking table of the calculated data and the pipe material.
Step S105, adding the bent pipe data table to a first preset position in the pretreatment file to obtain a target dwg file of the drawing to be treated.
In this embodiment, the bent pipe data table and the blanking table are added to a pre-designated position in the dwg chart in an attribute block mode, so as to obtain a target dwg file of the drawing to be processed, that is, the target dwg file is a target drawing for translating a source dwg file and adding a production data table, so that a production line can process and assemble materials according to the target drawing.
Compared with the prior art, the invention has the following beneficial effects:
According to the invention, the dwg format file of the drawing to be processed is automatically translated, so that a preprocessing file with Chinese translation is obtained; according to the data obtained by the xml file of the drawing to be processed, automatically generating and adding a data table for the preprocessing file to obtain a target drawing which can be used for generation, completing the conversion from a design drawing to a production drawing, and realizing the secondary processing of the drawing; the invention solves the problem of secondary treatment of the piping drawings by manpower in the prior art, greatly improves the working efficiency and the accuracy of the drawing treatment, and saves the production cost.
In another embodiment of the present invention, after generating the preprocessed document with translated data from the source dwg document of the drawing to be processed, the method further includes: generating a working hour table according to the working procedure name, the consumed working hours and the responsible person; and adding the time table to a second preset position in the preprocessing file to generate a target dwg file of the drawing to be processed.
The man-hour meter is used by the producer to fill out the man-hour consumed in the production of the pipe and the producer signature, and is added to a position designated in advance in the dwg chart in the form of a block reference.
In another embodiment of the present invention, after the production data table is added to a preset position in the preprocessing file to obtain the target dwg file of the drawing to be processed, the method further includes: extracting a production data table in each target dwg file; and classifying and summarizing materials in all the production data tables to generate a bill of materials table in a preset format.
The material list table comprises a bloom & ISO list and a bloom & ISO material tray table, when the bloom & ISO list is generated, tube information such as the tube number, the version number, the tube specification, the material quality, the weight, the surface treatment and the like is read from the coordinates of a bloom chart and an ISO chart in a dwg format, and then the information read from all the bloom charts and the ISO charts is sequentially filled into a preset Excel template to be stored as a bloom or ISO list; when the "Spool & ISO material pallet table" is generated, tube material information such as information of material name, specification, material, weight, number and the like is read from the Spool diagram and the material table of the ISO diagram in the format of "dwg". After each material of a Spool graph or an ISO graph is read, the materials are compared with the materials read before, and the materials are added and summarized with the quantity of the attribute materials. And filling the read information into a preset Excel template to store the information as a Spool or ISO material tray table.
Fig. 2 is a schematic diagram showing a display of a target dwg file provided by an embodiment of the present invention, where, as shown in fig. 2, a source dwg file of a drawing to be processed is subjected to drawing processing by using a method provided by the present invention, a target reference 200 in the drawing is a combined pipe fitting, and includes a first end point 1, a first bending point 2, a second bending point 3 and a second end point 4, a working hour table 240 is located at an upper left position of the target drawing, a first bent pipe data table 210 and a second bent pipe data table 220 are located at a lower left position, and a blanking table 230 is located at a lower right position; the working hour meter 240 mainly includes all the process names included in the manufacturing of the target reference object 200, such as a pipe bending process, a manufacturing process, a welding process, etc., and also includes the working hour time length required for each process, and the signatures of operators and mutual inspection staff are mainly used for twisting the drawing in the production process; the first pipe bending data table 210 is mainly used for manufacturing a pipe bending by a numerical control machine, coordinate values of an end point and a bending point in the table and other parameters are input into the numerical control machine to manufacture corresponding pipe bending devices, the second pipe bending data table 220 is a mechanical machine, and the pipe bending devices with corresponding sizes and specifications are manufactured according to the corresponding parameters which are manually adjusted.
Fig. 3 is a schematic structural diagram of a drawing processing device according to an embodiment of the present invention, where, as shown in fig. 3, the drawing processing device provided by the present invention specifically includes:
The file acquisition module 310 is used for acquiring a source dwg file and a source xml file of a drawing to be processed;
The file generating module 320 is configured to generate a preprocessing file with translation data from the source dwg file of the drawing to be processed;
The parameter obtaining module 330 is configured to obtain, according to the source xml file, a coordinate parameter of a target reference point in the drawing to be processed;
the data table generating module 340 is configured to generate a production data table according to the coordinate parameters and a preset database;
And an adding module 350, configured to add the production data table to a first preset position in the pretreatment file, so as to obtain a target dwg file of the drawing to be treated.
In an embodiment of the present invention, the file generating module 320 includes: the extraction module is used for extracting the text data to be translated and the position information of the text data to be translated in the source dwg file; the translation data acquisition module is used for acquiring translation data corresponding to the text data to be translated according to the text data to be translated and a preset translation database; and the writing module is used for writing the translated text data into the position information of the text data to be translated and generating a preprocessing file with the translated text data.
In an embodiment of the invention, the apparatus further comprises: the translation module is used for translating the text data to be translated through online translation to obtain translation data corresponding to the text data to be translated; and the updating module is used for updating the text data to be translated and the translation data to the preset translation database.
In an embodiment of the present invention, the text data table generating module 340 includes: the bent pipe data calculation module is used for calculating bent pipe data corresponding to the target reference point according to the coordinate parameters and a preset equipment database; and the bent pipe data table generation module is used for generating a bent pipe data table according to the bent pipe data.
In an embodiment of the present invention, the text data table generating module 340 further includes: the material acquisition module is used for acquiring the material of the target reference object in the drawing to be processed according to the source xml file; the blanking length calculation module is used for calculating the blanking length of each pipe fitting according to the coordinate parameters and a preset pipe fitting database; and the blanking table generation module is used for generating a blanking table according to the blanking length of each pipe fitting and the material of the target reference object.
In an embodiment of the invention, the apparatus further comprises: the production data table extraction module is used for extracting a production data table in each target dwg file; and the classifying and summarizing module is used for classifying and summarizing the materials in all the production data tables to generate a bill of materials table in a preset format.
In an embodiment of the invention, the apparatus further comprises: the working hour table generating module is used for generating a working hour table according to the working hour name, the consumed working hour and the responsible person; and the working hour table adding module is used for adding the working hour table to a second preset position in the preprocessing file and generating a target dwg file of the drawing to be processed.
In yet another embodiment of the present invention, a computer readable storage medium is provided having stored thereon a computer program which when executed by a processor performs the steps of: acquiring video image data; decoding the video image data to obtain a decoded image set; preprocessing the decoded image set to obtain a target image set; inputting the target image set into a target detection model for image recognition to obtain a target recognition result of each target image; and carrying out data analysis on all target identification results to obtain monitoring results.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for processing a drawing, the method comprising:
Acquiring a source dwg file and a source xml file of a drawing to be processed;
generating a preprocessing file with translation data from the source dwg file of the drawing to be processed;
Acquiring coordinate parameters of a target reference point in the drawing to be processed according to the source xml file;
generating a production data table according to the coordinate parameters and a preset database;
And adding the production data table to a first preset position in the pretreatment file to obtain a target dwg file of the drawing to be treated.
2. The drawing processing method as claimed in claim 1, wherein generating a preprocessing file having translation data from a source dwg file of the drawing to be processed includes:
extracting text data to be translated and position information of the text data to be translated in a source dwg file;
Obtaining translation data corresponding to the text data to be translated according to the text data to be translated and a preset translation database;
And writing the translated text data into the position information of the text data to be translated, and generating a preprocessing file with the translated text data.
3. The drawing processing method as set forth in claim 2, wherein when the text data to be translated does not exist in the preset translation database, the method further includes:
translating the text data to be translated through online translation to obtain translation data corresponding to the text data to be translated;
and updating the text data to be translated and the translation data to the preset translation database.
4. The drawing processing method as set forth in claim 1, wherein when the production data table is a bent pipe data table, generating a production data table according to the coordinate parameters and a preset database includes:
according to the coordinate parameters and a preset equipment database, calculating bent pipe data corresponding to the target reference point;
and generating a bent pipe data table according to the bent pipe data.
5. The drawing processing method as claimed in claim 1, wherein when the production data table is a blanking table, the production data table is generated according to the coordinate parameters and a preset database, further comprising:
acquiring the material of a target reference object in the drawing to be processed according to the source xml file;
Calculating the blanking length of each pipe fitting according to the coordinate parameters and a preset pipe fitting database;
and generating a blanking table according to the blanking length of each pipe fitting and the material of the target reference object.
6. The drawing processing method according to claim 5, wherein after adding the production data table to a preset position in the preprocessing file to obtain a target dwg file of the drawing to be processed, the method further comprises:
extracting a production data table in each target dwg file;
And classifying and summarizing materials in all the production data tables to generate a bill of materials table in a preset format.
7. The drawing processing method as set forth in claim 1, wherein after generating a preprocessing file having translation data from a source dwg file of the drawing to be processed, the method further comprises:
Generating a working hour table according to the working procedure name, the consumed working hours and the responsible person;
and adding the time table to a second preset position in the preprocessing file to generate a target dwg file of the drawing to be processed.
8. A drawing processing apparatus, the apparatus comprising:
the file acquisition module is used for acquiring a source dwg file and a source xml file of the drawing to be processed;
the file generation module is used for generating a source dwg file of the drawing to be processed into a preprocessing file with translation data;
The parameter acquisition module is used for acquiring coordinate parameters of a target reference point in the drawing to be processed according to the source xml file;
The data table generation module is used for generating a production data table according to the coordinate parameters and a preset database;
And the adding module is used for adding the production data table to a first preset position in the pretreatment file to obtain a target dwg file of the drawing to be treated.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any one of claims 1 to 7.
CN202011543948.3A 2020-12-24 2020-12-24 Drawing processing method, device, computer equipment and storage medium Active CN112580122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011543948.3A CN112580122B (en) 2020-12-24 2020-12-24 Drawing processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011543948.3A CN112580122B (en) 2020-12-24 2020-12-24 Drawing processing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112580122A CN112580122A (en) 2021-03-30
CN112580122B true CN112580122B (en) 2024-05-07

Family

ID=75139228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011543948.3A Active CN112580122B (en) 2020-12-24 2020-12-24 Drawing processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112580122B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20240085880A1 (en) * 2021-04-15 2024-03-14 Kobayashi Manufacture Co., Ltd. Server device and program
CN113656862A (en) * 2021-07-20 2021-11-16 中建科工集团有限公司 Drawing data updating processing method, device and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005050072A (en) * 2003-07-31 2005-02-24 Ngk Spark Plug Co Ltd Cad data converting method, cad data converting system, cad data converting program and method for manufacturing electronic circuit board
KR20120109677A (en) * 2011-03-25 2012-10-09 주식회사 싸이픽소프트 Method for estimating an amount of finishes materials by means of analyzing drawing files
CN103678776A (en) * 2013-11-21 2014-03-26 南车青岛四方机车车辆股份有限公司 Railway vehicle electrical wiring engineered design method
CN105975451A (en) * 2016-05-27 2016-09-28 成都优译信息技术有限公司 Processing system and method for DWG-format-file translation data
CN106021242A (en) * 2016-05-27 2016-10-12 成都优译信息技术有限公司 Write-back system of drawing interpretation data in DWG format and write-back method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7620525B2 (en) * 2001-11-28 2009-11-17 Smc Corporation Of America Method of generating CAD files and delivering CAD files to customers
US20060005126A1 (en) * 2002-10-07 2006-01-05 Shaul Shapiro Method for manipulation of objects within electronic graphic documents

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005050072A (en) * 2003-07-31 2005-02-24 Ngk Spark Plug Co Ltd Cad data converting method, cad data converting system, cad data converting program and method for manufacturing electronic circuit board
KR20120109677A (en) * 2011-03-25 2012-10-09 주식회사 싸이픽소프트 Method for estimating an amount of finishes materials by means of analyzing drawing files
CN103678776A (en) * 2013-11-21 2014-03-26 南车青岛四方机车车辆股份有限公司 Railway vehicle electrical wiring engineered design method
CN105975451A (en) * 2016-05-27 2016-09-28 成都优译信息技术有限公司 Processing system and method for DWG-format-file translation data
CN106021242A (en) * 2016-05-27 2016-10-12 成都优译信息技术有限公司 Write-back system of drawing interpretation data in DWG format and write-back method thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
excel表格到AutoCAD表格的转换;冯若谦;《宁夏工程技术》;20030315;第2卷(第1期);76-80 *
基于XML的PDM与AutoCAD属性双向映射;林万辉;《机械制造》;20070820;31-34 *

Also Published As

Publication number Publication date
CN112580122A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN112580122B (en) Drawing processing method, device, computer equipment and storage medium
CN110750840B (en) Method and device for automatically generating two-dimensional part view based on three-dimensional model
CN112163553B (en) Material price accounting method, device, storage medium and computer equipment
CN111159982B (en) Document editing method, device, electronic equipment and computer readable storage medium
CN110297656B (en) Method and device for evaluating codes based on configuration model and computer equipment
CN103678109A (en) Dump document analysis method, device and system
CN110647885B (en) Test paper splitting method, device, equipment and medium based on picture identification
CN112200153B (en) Person post matching method, device and equipment based on history matching result
CN113094617B (en) Web element positioning method and application and storage medium thereof
CN112418812A (en) Distributed full-link automatic intelligent clearance system, method and storage medium
CN113627168B (en) Method, device, medium and equipment for checking component packaging conflict
CN111815162A (en) Digital auditing tool and method
KR20200097953A (en) Intelligent line management system and same method
CN117764039A (en) Bid file generation method, system, terminal and storage medium based on large model
CN111078564B (en) UI test case management method, device, computer equipment and computer readable storage medium
CN116166629A (en) File format conversion method, device, equipment and readable storage medium
CN115618828A (en) Data interaction method and system applied to industrial Internet
CN115599908A (en) Method and system for labeling unstructured data document
CN116956838A (en) Project determining method and device for engineering quantity list
CN113033149B (en) User story document quality inspection method, device, equipment and storage medium
CN117807969B (en) Engineering quantity information acquisition method, device and storage medium
KR101192273B1 (en) Plant and ship commissioning support method and computer readable recording medium storing program performing the method
US20240143919A1 (en) Systems and methods for extracting data from documents
KR102145178B1 (en) Method of automatically creating Intelligent PID drawings by using information of design stored in a database
CN116796219A (en) Fault diagnosis method, device and equipment for cathode protection system of gas pipeline

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant