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

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

Info

Publication number
CN112580122A
CN112580122A CN202011543948.3A CN202011543948A CN112580122A CN 112580122 A CN112580122 A CN 112580122A CN 202011543948 A CN202011543948 A CN 202011543948A CN 112580122 A CN112580122 A CN 112580122A
Authority
CN
China
Prior art keywords
file
processed
data
generating
preset
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.)
Granted
Application number
CN202011543948.3A
Other languages
Chinese (zh)
Other versions
CN112580122B (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

Images

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 drawing processing 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 preprocessed file to obtain a target dwg file of the drawing to be processed; 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 drawing treatment and saves the production cost.

Description

Drawing processing method and 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 the Cad-Matic is a kind of piping system modeling graph software, but the generated Spool graph (pipe receipt graph) and ISO graph (pipe installation coordinate graph) for piping system production lack many necessary production information, are all English, and cannot be directly used for production of shipyards, and the graph paper needs to be subjected to secondary treatment to be issued for production.
The work of secondary processing on each drawing includes translating the original drawing, adding contents such as generating an information table and compiling a bill of materials, but at present, each drawing is generally processed manually by technical personnel, and because the workload is large, the processing time is long, 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 drawing processing device, the computer equipment and the storage medium 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, including: 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 preprocessed file to obtain a target dwg file of the drawing to be processed.
Optionally, generating a preprocessed 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 translation data into the position information of the text data to be translated to generate a preprocessed file with the translation 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 translated text 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 a bent pipe data table, generating the production data table according to the coordinate parameter and a preset database, including: calculating bent pipe data corresponding to the target reference point according to the coordinate parameters and a preset equipment database; and generating a bent pipe data table according to the bent pipe data.
Optionally, when the production data table is a blanking table, generating the production data table according to the coordinate parameter and a preset database, further comprising: obtaining 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 the production data table is added to a preset position in the preprocessed 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 the materials in all the production data tables to generate a material list table with a preset format.
Optionally, after generating the preprocessed file with the translated text 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 working hour table to a second preset position in the preprocessed 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, 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 preprocessing file with translation data from the source dwg file of the drawing to be processed; the parameter acquisition module is used for acquiring the coordinate parameters of the target reference points in the drawing to be processed according to the source xml file; the data table generating 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 preprocessed file to obtain a target dwg file of the drawing to be processed.
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 preprocessed file to obtain a target dwg file of the drawing to be processed.
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 preprocessed file to obtain a target dwg file of the drawing to be processed.
Compared with the prior art, the invention has the following beneficial effects:
the invention automatically translates the dwg format file of the drawing to be processed to obtain a preprocessed file with Chinese translation; automatically generating and adding a generated data sheet to the preprocessed file according to data obtained by the xml file of the drawing to be processed to obtain a target drawing for generating and using, thereby completing the conversion from a design drawing to a finished production drawing and realizing the secondary processing of the drawing; the invention solves the problem of secondary treatment of the piping drawing by manpower in the prior art, greatly improves the working efficiency and the accuracy of drawing treatment and saves the production cost.
Drawings
Fig. 1 is a schematic flow chart illustrating a drawing processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a display of a target dwg file according to an embodiment of the invention;
fig. 3 is a schematic structural diagram of a drawing processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic flow chart illustrating 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:
and S101, acquiring a source dwg file and a source xml file of the drawing to be processed.
In this embodiment, the drawings to be processed include, but are not limited to, a Spool drawing and an ISO drawing, and each drawing to be processed includes files in two formats, dwg and xml.
And S102, generating a preprocessing file with translation data from the source dwg file of the drawing to be processed.
Further, generating a preprocessed 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 translation data into the position information of the text data to be translated to generate a preprocessed file with the translation data.
It should be noted that, in the Spool diagram and the ISO diagram, the english word is highly professional and limited in number. Aiming at the characteristics, one 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 language database, translated Chinese translations are filled in corresponding lines of the English words, and the English words in the database can be added at any time in the later period.
When a drawing to be processed is translated, firstly reading English and Chinese words in a database into a memory in pairs; and then opening the Spool graph and the ISO graph which are pre-added into the list box and need to be translated in a dwg format one by one, searching all text objects in the drawing one by one, comparing the text objects with English words in the database one by one after searching one text object, and if the same English text exists in the database, replacing the English text with the Chinese translation corresponding to the English text at the same position to realize the translation function and obtain a preprocessing file with the Chinese translation. In the embodiment, the preset translation database is locally stored in the format of the Excel document, so that the translation efficiency can be improved.
In this implementation, when the preset translation database does not have the text data to be translated, the method further includes: translating the text data to be translated through online translation to obtain translated text 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 the drawing to be processed 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 online 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 updating 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, 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.
And step S104, generating a production data table 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: calculating bent pipe data corresponding to the target reference point according to the coordinate parameters and a preset equipment database; 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 adopted to store equipment parameters of the tube bender in the shipyard, where the equipment parameters include, but are not limited to, bending die radius, head clamp length, tail clamp length, tube bender height, and the like corresponding to various tube diameters, and the Access database storing the equipment parameters of the tube bender is used as the preset equipment database.
Reading the pipe bender parameters in the preset equipment database into a memory before drawing the bent pipe data table; when the bent pipe data is calculated, reading the coordinate values of the pipe end point and the pipe bending point from the Spool file in the xml format, and calculating the bent pipe data by using the bent pipe parameters corresponding to the current pipe diameter; and then drawing a bent pipe data table by using the calculated bent pipe data.
Further, when the production data table is a blanking table, generating a production data table according to the coordinate parameters and a preset database, further comprising: obtaining 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 pipe parameters, where the pipe parameters include, but are not limited to, flanges, elbows, length dimensions 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 end point of the pipe, the bending point of the pipe and the material of the pipe are read from the Spool file in the xml format, and the blanking length of each section of the pipe is calculated by using pipe fitting parameters corresponding to the current pipe diameter. And then drawing a blanking table by using the calculated data and the pipe material.
And S105, adding the bent pipe data table to a first preset position in the preprocessed file to obtain a target dwg file of the drawing to be processed.
In this embodiment, the bent pipe data sheet and the blanking table are added to a pre-specified position in a dwg drawing in an attribute block type, 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 sheet, so that a production line can perform material processing and assembly according to the target drawing.
Compared with the prior art, the invention has the following beneficial effects:
the invention automatically translates the dwg format file of the drawing to be processed to obtain a preprocessed file with Chinese translation; automatically generating and adding a generated data sheet to the preprocessed file according to data obtained by the xml file of the drawing to be processed to obtain a target drawing for generating and using, thereby completing the conversion from a design drawing to a finished production drawing and realizing the secondary processing of the drawing; the invention solves the problem of secondary treatment of the piping drawing by manpower in the prior art, greatly improves the working efficiency and the accuracy of drawing treatment and saves the production cost.
In another embodiment of the present invention, after the source dwg file of the drawing to be processed is generated into the preprocessed file with the translation data, 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 working hour table to a second preset position in the preprocessed file to generate a target dwg file of the drawing to be processed.
Note that the man-hour table is used by the manufacturer to fill in the man-hours consumed in the tube making and the manufacturer's signature, and is added to a pre-specified position in the dwg diagram in the block reference type.
In another embodiment of the present invention, after the production data table is added to a preset position in the preprocessed 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 the materials in all the production data tables to generate a material list table with a preset format.
It should be noted that the material inventory table includes a Spool & ISO list and a Spool & ISO material pallet table, when the "Spool & ISO list" is generated, the tube information, such as information of a tube number, a version number, a tube specification, a material, a weight, surface treatment and the like, is read from a Spool diagram and an ISO diagram in a "dwg" format, and then the information read from all the Spool diagrams and the ISO diagram is sequentially written into a preset "Excel" template and stored as the "Spool or ISO list"; when the "Spool & ISO material pallet table" is generated, the material information of the pipe, such as the material name, specification, material, weight, quantity and the like, is read from the material tables of the Spool diagram and the ISO diagram in the "dwg" format. After each reading of the material of the Spool graph or the ISO graph, the comparison is carried out with the material read in the front, and the comparison is added and summarized with the quantity of the attribute materials. And filling the read information into a preset Excel template and storing the information as a Spool or ISO material pallet table.
Fig. 2 is a schematic diagram showing a target dwg file provided in an embodiment of the present invention, and as shown in fig. 2, a source dwg file of a drawing to be processed is subjected to drawing processing by the method provided in the present invention to obtain a schematic diagram of the target dwg file, a target reference 200 in the drawing is a combined pipe, and includes a first end point 1, a first bend point 2, a second bend 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 labor hour table 240 mainly includes all process names included in the manufacture of the target reference object 200, such as a pipe bending process, a manufacturing process, a welding process, and the like, and also includes the labor hour duration required by each process, and signatures of operators and mutual inspection personnel, and is mainly used for twisting drawings in the production process; the first bend data table 210 is mainly used for manufacturing bends by a numerical control machine, and corresponding tube bender parts can be manufactured by inputting coordinate values and other parameters of end points and bend points in the table into the numerical control machine, and the second bend data table 220 is a mechanical machine tool and is used for manufacturing tube bender parts with corresponding sizes and specifications according to corresponding parameters regulated manually.
Fig. 3 is a schematic structural diagram of a drawing processing apparatus according to an embodiment of the present invention, and as shown in fig. 3, the drawing processing apparatus specifically includes:
the file acquisition module 310 is configured to acquire a source dwg file and a source xml file of a drawing to be processed;
the file generation module 320 is configured to generate a preprocessed 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 preprocessed file, so as to obtain a target dwg file of the drawing to be processed.
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 translation data into the position information of the text data to be translated to generate a preprocessing file with the translation 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 translated text 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 generating 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 obtaining module is used for obtaining 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 generating 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 the production data table in each target dwg file; and the classification and summary module is used for classifying and summarizing the materials in all the production data tables to generate a material list table with a preset format.
In an embodiment of the invention, the apparatus further comprises: the labor-hour table generating module is used for generating a labor-hour table according to the process name, the consumed labor hour and the responsible person; and the man-hour table adding module is used for adding the man-hour table to a second preset position in the preprocessed file to generate a target dwg file of the drawing to be processed.
In a further embodiment of the invention, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, realizes the following steps: acquiring video image data; decoding the video image data to obtain a decoded image set; preprocessing the decoding 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 analyzing data of all target identification results to obtain monitoring results.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile 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 DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A drawing processing method is characterized by comprising 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;
and adding the production data table to a first preset position in the preprocessed file to obtain a target dwg file of the drawing to be processed.
2. The drawing processing method of claim 1, wherein generating the source dwg file of the drawing to be processed into a preprocessed file with translation data comprises:
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 translation data into the position information of the text data to be translated to generate a preprocessed file with the translation data.
3. The drawing processing method according to claim 2, wherein when the text data to be translated does not exist in the preset translation database, the method further comprises:
translating the text data to be translated through online translation to obtain translated text 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 of claim 1, wherein when the production data table is a bent pipe data table, generating the production data table according to the coordinate parameters and a preset database comprises:
calculating bent pipe data corresponding to the target reference point according to the coordinate parameters and a preset equipment database;
and generating a bent pipe data table according to the bent pipe data.
5. The drawing processing method of claim 1, wherein when the production data table is a blanking table, generating the production data table according to the coordinate parameters and a preset database, further comprising:
obtaining 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 of claim 5, wherein after the production data sheet is added to a preset position in the preprocessing document to obtain a target dwg document of the drawing to be processed, the method further comprises:
extracting a production data table in each target dwg file;
and classifying and summarizing the materials in all the production data tables to generate a material list table with a preset format.
7. The drawing processing method of claim 1, wherein after generating the preprocessed file with translation data from the 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 working hour table to a second preset position in the preprocessed file to generate a target dwg file of the drawing to be processed.
8. A drawing processing apparatus, characterized by 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 preprocessing file with translation data from the source dwg file of the drawing to be processed;
the parameter acquisition module is used for acquiring the coordinate parameters of the target reference points in the drawing to be processed according to the source xml file;
the data table generating 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 preprocessed file to obtain a target dwg file of the drawing to be processed.
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 steps of the method of any of claims 1 to 7 are implemented by the processor when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out 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 true CN112580122A (en) 2021-03-30
CN112580122B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656862A (en) * 2021-07-20 2021-11-16 中建科工集团有限公司 Drawing data updating processing method, device and computer readable storage medium
CN117083613A (en) * 2021-04-15 2023-11-17 株式会社小林制作所 Server device and program

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030103083A1 (en) * 2001-11-28 2003-06-05 John Denny Method of generating CAD files and delivering CAD files to customers
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
US20060005126A1 (en) * 2002-10-07 2006-01-05 Shaul Shapiro Method for manipulation of objects within electronic graphic documents
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030103083A1 (en) * 2001-11-28 2003-06-05 John Denny 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
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表格的转换", 《宁夏工程技术》, vol. 2, no. 1, 15 March 2003 (2003-03-15), pages 76 - 80 *
林万辉: "基于XML的PDM与AutoCAD属性双向映射", 《机械制造》, 20 August 2007 (2007-08-20), pages 31 - 34 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117083613A (en) * 2021-04-15 2023-11-17 株式会社小林制作所 Server device and program
CN113656862A (en) * 2021-07-20 2021-11-16 中建科工集团有限公司 Drawing data updating processing method, device and computer readable storage medium

Also Published As

Publication number Publication date
CN112580122B (en) 2024-05-07

Similar Documents

Publication Publication Date Title
CN112580122A (en) Drawing processing method and device, computer equipment and storage medium
CN108256074B (en) Verification processing method and device, electronic equipment and storage medium
CN110297656B (en) Method and device for evaluating codes based on configuration model and computer equipment
CN113627168B (en) Method, device, medium and equipment for checking component packaging conflict
CN111159982A (en) Document editing method and device, electronic equipment and computer readable storage medium
CN116166629A (en) File format conversion method, device, equipment and readable storage medium
CN109299205B (en) Method and device for warehousing spatial data used by planning industry
CN113505569A (en) DWG drawing font adapting method and device, terminal equipment and storage medium
CN111582388A (en) Method and system for quickly labeling image data
CN111815162A (en) Digital auditing tool and method
KR20200097953A (en) Intelligent line management system and same method
CN112699635A (en) Data entry method and related device for engineering cost software
CN115455266B (en) Automatic electronic file acquisition and filing method and system
CN115599908A (en) Method and system for labeling unstructured data document
CN115564287A (en) Power supply service work order processing method and device, computer equipment and storage medium
CN114943219A (en) Method, device and equipment for generating bill of material test data and storage medium
CN118095428B (en) Automatic generation method, device, equipment and storage medium for paper format detection rules
CN113033149B (en) User story document quality inspection method, device, equipment and storage medium
CN117807969B (en) Engineering quantity information acquisition method, device and storage medium
CN113011151B (en) Method, device and equipment for generating requirement document template and storage medium
CN114036932B (en) Method, device, equipment and storage medium for generating flow chart
CN115169312A (en) Automatic generation method and system for construction cross-bottom book
JP2021174548A (en) Character recognition program for medical statement and character recognition device for medical statement
CN117932056A (en) Digital intelligent checking method and system based on text analysis
CN117610527A (en) Report analysis and report generation method and system based on large language model

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