CN116166630A - DWG drawing format conversion method, system and device - Google Patents

DWG drawing format conversion method, system and device Download PDF

Info

Publication number
CN116166630A
CN116166630A CN202310267635.7A CN202310267635A CN116166630A CN 116166630 A CN116166630 A CN 116166630A CN 202310267635 A CN202310267635 A CN 202310267635A CN 116166630 A CN116166630 A CN 116166630A
Authority
CN
China
Prior art keywords
dwg
image frame
frame
new image
splitting
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.)
Pending
Application number
CN202310267635.7A
Other languages
Chinese (zh)
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.)
Beijing Anzhengtong Information Technology Co ltd
Original Assignee
Beijing Anzhengtong Information Technology 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 Beijing Anzhengtong Information Technology Co ltd filed Critical Beijing Anzhengtong Information Technology Co ltd
Priority to CN202310267635.7A priority Critical patent/CN116166630A/en
Publication of CN116166630A publication Critical patent/CN116166630A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • G06F16/1794Details of file format conversion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The invention discloses a method, a system and a device for converting a DWG drawing format, comprising the following steps of S1, obtaining frame information in a DWG drawing; s2, splitting the DWG image frame to obtain a new image frame with a plurality of positions; s3, obtaining frame information corresponding to the position of the new image frame, and determining a file name according to the corresponding frame information; s4, converting the split DWG image frames into other formats, and naming the split DWG image frames with corresponding file names. The invention can realize DWG drawing conversion format.

Description

DWG drawing format conversion method, system and device
Technical Field
The invention relates to the field of DWG drawing conversion formats, in particular to a method, a system and a device for converting a DWG drawing.
Background
At present, an AutoCAD plug-in mainly disassembles each frame, converts the frame into PDF, names the converted file by DWG drawing names, such as (xxx. DWG- > xxx. PDF), such naming modes are fuzzy, and locating each frame in a DWG drawing is very inconvenient, so that a customer needs an accurate file name to describe the file, such as the drawing name+the drawing number of the frame.
Disclosure of Invention
The invention aims to provide a DWG drawing conversion format method and aims to solve the problem of DWG drawing conversion format.
The invention provides a DWG drawing format conversion method, which comprises the following steps:
s1, acquiring frame information in a DWG drawing;
s2, splitting the DWG image frame to obtain a new image frame with a plurality of positions;
s3, obtaining frame information corresponding to the position of the new image frame, and determining a file name according to the corresponding frame information;
s4, converting the split DWG image frames into other formats, and naming the split DWG image frames with corresponding file names.
The invention also provides a DWG drawing conversion format system, which comprises:
the acquisition module is used for: the method is used for acquiring frame information in the DWG drawing;
splitting module: the method comprises the steps of splitting a DWG image frame to obtain a new image frame with a plurality of positions;
and a determination module: the method comprises the steps of acquiring frame information corresponding to a new image frame position, and determining a file name according to the corresponding frame information;
naming module: for converting the split DWG image frames into other formats, named with the corresponding file names.
The embodiment of the invention also provides a DWG drawing format conversion device, which comprises: a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor, performs the steps of the method described above.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores an information transmission implementation program, and the program realizes the steps of the method when being executed by a processor.
By adopting the embodiment of the invention, DWG drawing conversion format can be realized and named.
The foregoing description is only an overview of the present invention, and is intended to provide a more clear understanding of the technical means of the present invention, as it is embodied in accordance with the present invention, and to make the above and other objects, features and advantages of the present invention more apparent, as it is embodied in the following detailed description of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of DWG drawing conversion format according to an embodiment of the present invention;
FIG. 2 is a system diagram of a DWG drawing format according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an apparatus for converting a DWG drawing format according to an embodiment of the invention.
Detailed Description
The technical solutions of the present invention will be clearly and completely described in connection with the embodiments, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Method embodiment
According to an embodiment of the present invention, a method for converting a DWG drawing is provided, and fig. 1 is a flowchart of a method for converting a DWG drawing according to an embodiment of the present invention, as shown in fig. 1, specifically including:
s1, acquiring frame information in a DWG drawing;
s2, splitting the DWG image frame to obtain a new image frame with a plurality of positions;
s3, obtaining frame information corresponding to the position of the new image frame, and determining a file name according to the corresponding frame information;
s4, converting the split DWG image frames into other formats, and naming the split DWG image frames with corresponding file names.
S1 specifically comprises: and acquiring the frame size, proportion and text region coordinate information in the DWG drawing.
S2 specifically comprises: and splitting the DWG image frame to obtain a new image frame with a plurality of positions, wherein the size of the new image frame is an integer multiple of a certain size in the printer size list.
S4 specifically comprises the following steps: the split DWG image frame is converted into PDF or DWF or OFD, and the corresponding file name is named.
The specific implementation method is as follows:
defining a template: and saving the information such as the frame size, the proportion, the character region coordinates and the like.
Splitting a picture frame: splitting the frame (the actual size of the frame must be an integer multiple of a certain size of the printer size list to be split, and a custom size can be added)
Matching characters: and reading the template information, and searching the corresponding position text as a file name.
Converting a drawing: converted to PDF/DWF/OFD.
The beneficial effects are as follows:
the user can split and convert the whole DWG drawing into a file format (PDF, DWF, OFD) which is wanted by himself at a time
The file name is generated in the automatically acquired frame, and the client is not required to name the file newly.
System embodiment
According to an embodiment of the present invention, a system for converting a DWG drawing is provided, and fig. 2 is a schematic diagram of a system for converting a DWG drawing according to an embodiment of the present invention, as shown in fig. 2, specifically including:
the acquisition module is used for: the method is used for acquiring frame information in the DWG drawing;
splitting module: the method comprises the steps of splitting a DWG image frame to obtain a new image frame with a plurality of positions;
and a determination module: the method comprises the steps of acquiring frame information corresponding to a new image frame position, and determining a file name according to the corresponding frame information;
naming module: for converting the split DWG image frames into other formats, named with the corresponding file names.
The acquisition module is specifically configured to: and acquiring the frame size, proportion and text region coordinate information in the DWG drawing.
The splitting module is specifically used for: and splitting the DWG image frame to obtain a new image frame with a plurality of positions, wherein the size of the new image frame is an integer multiple of a certain size in the printer size list.
The naming module is specifically used for: the split DWG image frame is converted into PDF or DWF or OFD, and the corresponding file name is named.
The embodiment of the present invention is a system embodiment corresponding to the above method embodiment, and specific operations of each module may be understood by referring to the description of the method embodiment, which is not repeated herein.
Device embodiment 1
An embodiment of the present invention provides a device for converting a DWG drawing format, as shown in fig. 3, including: memory 30, processor 32, and a computer program stored on memory 30 and executable on processor 32, which when executed by the processor, performs the steps of the method embodiments described above.
Device example two
The embodiment of the present invention provides a computer-readable storage medium, on which a program for implementing information transmission is stored, which when executed by the processor 32 implements the steps of the method embodiment described above.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; and these modifications or substitutions may be made to the technical solutions of the embodiments of the present invention without departing from the spirit of the corresponding technical solutions.

Claims (10)

1. A method for converting a DWG drawing format, comprising:
s1, acquiring frame information in a DWG drawing;
s2, splitting the DWG image frame to obtain a new image frame with a plurality of positions;
s3, obtaining frame information corresponding to the position of the new image frame, and determining a file name according to the corresponding frame information;
s4, converting the split DWG image frames into other formats, and naming the split DWG image frames with corresponding file names.
2. The method according to claim 1, wherein S1 specifically comprises: and acquiring the frame size, proportion and text region coordinate information in the DWG drawing.
3. The method according to claim 1, wherein S2 specifically comprises: and splitting the DWG image frame to obtain a new image frame with a plurality of positions, wherein the size of the new image frame is an integer multiple of a certain size in the printer size list.
4. A method according to claim 3, wherein S4 comprises: the split DWG image frame is converted into PDF or DWF or OFD, and the corresponding file name is named.
5. A system for converting a DWG drawing format, comprising:
the acquisition module is used for: the method is used for acquiring frame information in the DWG drawing;
splitting module: the method comprises the steps of splitting a DWG image frame to obtain a new image frame with a plurality of positions;
and a determination module: the method comprises the steps of acquiring frame information corresponding to a new image frame position, and determining a file name according to the corresponding frame information;
naming module: for converting the split DWG image frames into other formats, named with the corresponding file names.
6. The system of claim 5, wherein the acquisition module is specifically configured to: and acquiring the frame size, proportion and text region coordinate information in the DWG drawing.
7. The system of claim 6, wherein the splitting module is specifically configured to: and splitting the DWG image frame to obtain a new image frame with a plurality of positions, wherein the size of the new image frame is an integer multiple of a certain size in the printer size list.
8. The system of claim 7, wherein the naming module is specifically configured to: the split DWG image frame is converted into PDF or DWF or OFD, and the corresponding file name is named.
9. A device for converting a DWG drawing format, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor, performs the steps of the method of DWG drawing conversion format according to any of claims 1 to 4.
10. A computer-readable storage medium, in which a program for realizing information transfer is stored, which program, when being executed by a processor, realizes the steps of the method of DWG drawing conversion format according to any one of claims 1 to 4.
CN202310267635.7A 2023-03-14 2023-03-14 DWG drawing format conversion method, system and device Pending CN116166630A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310267635.7A CN116166630A (en) 2023-03-14 2023-03-14 DWG drawing format conversion method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310267635.7A CN116166630A (en) 2023-03-14 2023-03-14 DWG drawing format conversion method, system and device

Publications (1)

Publication Number Publication Date
CN116166630A true CN116166630A (en) 2023-05-26

Family

ID=86411445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310267635.7A Pending CN116166630A (en) 2023-03-14 2023-03-14 DWG drawing format conversion method, system and device

Country Status (1)

Country Link
CN (1) CN116166630A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7047180B1 (en) * 1999-04-30 2006-05-16 Autodesk, Inc. Method and apparatus for providing access to drawing information
CN114254407A (en) * 2021-11-19 2022-03-29 深圳市华阳国际工程设计股份有限公司 Graph splitting method, system, terminal equipment and storage medium
CN115061980A (en) * 2022-08-18 2022-09-16 南京国睿信维软件有限公司 Method for converting multiple drawings in DWG same canvas into multi-page PDF drawings

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7047180B1 (en) * 1999-04-30 2006-05-16 Autodesk, Inc. Method and apparatus for providing access to drawing information
CN114254407A (en) * 2021-11-19 2022-03-29 深圳市华阳国际工程设计股份有限公司 Graph splitting method, system, terminal equipment and storage medium
CN115061980A (en) * 2022-08-18 2022-09-16 南京国睿信维软件有限公司 Method for converting multiple drawings in DWG same canvas into multi-page PDF drawings

Similar Documents

Publication Publication Date Title
US8028079B2 (en) Efficient transform from XML to javascript objects
US10157180B2 (en) Displaying information in multiple languages based on optical code reading
CN109960478B (en) Web map printing preview method and device
KR20070003418A (en) Method for providing mobile webpage by employing to dynamic template
WO2014073941A1 (en) Apparatus and method for converting electronic form
CN112000902B (en) Method, electronic device, and storage medium for mapping an area
US8579196B1 (en) Enhanced utility tag scan method
CN112581568B (en) Dynamic poster generation method, device, server and storage medium
CN116166630A (en) DWG drawing format conversion method, system and device
CN110097560A (en) Scratch drawing method and device
CN106295742A (en) The medical treatment that paper carrier and electron carrier obtain simultaneously prints inquiry system
US11265594B2 (en) Data processing method and device, storage medium, electronic device
CN108109106B (en) Picture generation method and device and computer equipment
CN102663063A (en) System and method for showing general information of multiple user platforms based on XSLT (extensible stylesheet language transformation)
CN110889261A (en) Method for automating electronic official document service processing
CN103294788A (en) Universal background processing method and system for websites
CN111046020B (en) Information processing method and device, storage medium and electronic equipment
CN116823700A (en) Image quality determining method and device
CN112948474A (en) Data export method, device, equipment and computer readable storage medium
CN111913703A (en) Object editing method and device, electronic equipment and readable storage medium
JPH1169141A (en) Image generating method and device therefor
JP5404593B2 (en) Address book server and data processing system having the same
CN104834509A (en) Method of editing vector diagram in electronic medical record editor
CN114997185B (en) Translation method, medium, program product and electronic device
CN108804435B (en) Method and apparatus for determining current screen heat value

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