CN107229687A - A kind of batch is converted to dft file the system and method for DWG file - Google Patents
A kind of batch is converted to dft file the system and method for DWG file Download PDFInfo
- Publication number
- CN107229687A CN107229687A CN201710332591.6A CN201710332591A CN107229687A CN 107229687 A CN107229687 A CN 107229687A CN 201710332591 A CN201710332591 A CN 201710332591A CN 107229687 A CN107229687 A CN 107229687A
- Authority
- CN
- China
- Prior art keywords
- file
- dwg
- dft
- converted
- word
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 230000008569 process Effects 0.000 claims abstract description 7
- 239000007787 solid Substances 0.000 claims description 8
- 238000006243 chemical reaction Methods 0.000 abstract description 8
- 238000013461 design Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000005194 fractionation Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/06—Topological mapping of higher dimensional structures onto lower dimensional surfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/258—Data format conversion from or to a database
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/56—Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Document Processing Apparatus (AREA)
Abstract
The invention discloses the system and method that a kind of batch is converted to dft file DWG file, user's input module;File modular converter, dft file is converted to interim DWG file by user, travel through all entities in interim DWG file, and preserve all entity informations into object intersection, the title bar and frame in object intersection are deleted, retains remaining entity information, title bar template is opened and is used as new Drawing zone, remaining entity information is taken out from the object intersection to be inserted into new Drawing zone, and deletes interim DWG file;Elemental recognition module, judgement classification is carried out for all entities in traverse object intersection, and to the affiliated type of entity;With DWG document process modules.DWG formatted files after present invention conversion can avoid word dislocation, linear proportional mistake, title bar from being identified, and realize DFT to the function and high conversion efficiency of DWG file Batch conversion.
Description
Technical field
The present invention relates to the system and method that a kind of batch is converted to dft file DWG file, belong to computer application skill
Art field.
Background technology
With the continuous progress of computer technology, Computerized three-dimensional designing technique obtains fast development, and three dimensional design has
The features such as third dimension is strong, parametrization, modularization, interference checking, cost are accurately controlled and " no figureization " is produced, many enterprises are
Through starting to be changed from two-dimensional design to three dimensional design, in this transition process, because many enterprises use the software of independent development
The management of drawing item block, title bar and BOM is carried out, these softwares can't take off completely just for two-dimentional file development
From two-dimensional environment, it is therefore desirable to designed threedimensional model is carried out into parts fractionation and X-Y scheme file (DFT is converted to
Form), and dft file is converted to the cad file (DWG forms) that can be recognized.
Solid Edge are as using relatively more extensive a Three-dimensional Design Software, and software can be automatic by threedimensional model
X-Y scheme (DFT forms) file is produced, and software provides engineering (DFT forms) file being converted to AutoCAD engineerings
(DWG forms) file function.
It is existing converted during DFT formatted files to be converted to DWG formatted files by Solid Edge softwares
There are the following problems in journey:Easily there is word dislocation, word mess code, linear proportional mistake, drawing mark in DWG file after conversion
Topic column, item block are changed into block format, it is impossible to read the information in title bar and item block by third party software, lead to not and
Other software system integrations;If substantial amounts of dft file is converted into DWG file, it is necessary to enter one by one by manual selecting file
Row conversion, it is impossible to carry out batch and automatically process, transformation efficiency is low.
The content of the invention
In view of the deficienciess of the prior art, dft file is converted into DWG file it is an object of the present invention to provide a kind of batch
System and method, the DWG formatted files after conversion can avoid word dislocation, linear proportional mistake, title bar from being known
Not, and DFT is realized to the function of DWG file Batch conversion, and high conversion efficiency.
To achieve these goals, the present invention is to realize by the following technical solutions:
The system that a kind of batch of the present invention is converted to dft file DWG file, including
User's input module, shows for selecting dft file path, selection DWG file outgoing route, setting in DWG file
Show font, linear proportional and the title bar template path of word;
The dft file is converted to interim DWG file by file modular converter, user, travels through the institute in interim DWG file
There is entity information, all entity informations include lines, size marking, block, word, title bar and frame, and all entities are believed
Breath is preserved into object intersection, deletes title bar and frame in the object intersection, retain remaining lines, size marking,
Block and word;The method for calling Auto CAD object model components to provide again opens title bar template as new Drawing zone, from
Lines, size marking, block and word are taken out in the object intersection, is inserted into new Drawing zone, and delete interim DWG file;
Elemental recognition module, sentences for all entity informations in traverse object intersection, and to the affiliated type of entity
Fixed classification;
With DWG document process modules, if it is determined that entity attribute is word, then by changing the Font attributes of text entity
Character script is modified, if it is determined that entity attribute is setting line style, then linear proportional entered by changing scale attributes
Row modification.
Above-mentioned dft file is converted to interim DWG file by the object model component for calling Solid Edge to provide.
The method that the batch of the present invention is converted to dft file DWG file, specifically includes following several steps:
(a) select and be loaded into the dft file for needing to be converted into DWG formatted files;
(b) font, the linear proportional that word is shown in DWG file are set;
(c) title bar template path, DWG file outgoing route in DWG file are set;
(d) dft file is converted to interim DWG file by the object model component for calling Solid Edge to provide;
(e) object model component for calling Auto CAD to provide travels through lines, size mark in the interim DWG file
Note, block, word, title bar and frame;And preserve all entity informations into object intersection;
(f) title bar and frame in object intersection are deleted, retains remaining lines, size marking, block and word;
(g) method for calling Auto CAD object model components to provide again opens title bar template as new Drawing zone,
Lines, size marking, block and word are taken out from the object intersection, is inserted into new Drawing zone, and deletes interim DWG texts
Part;
(h) all entities in the object model component traverse object intersection of Auto CAD offers are provided, and to entity institute
Category type is judged, if entity attribute is word, and character script is carried out by the Font attributes for changing text entity
Modification;If entity attribute is setting line style, linear proportional is modified by changing scale attributes, all operations are completed
Afterwards, new Drawing zone is preserved to predetermined location.
The DWG file that the present invention is generated efficiently solves the word dislocation or random caused by font is different in transfer process
Code, all linear look all are that straight line, title panel information can not be by PLM software grabs caused by linear proportional mistake;Simultaneously
The present invention can be also used for batch processing DFT forms and be converted to DWG forms.
Brief description of the drawings
Fig. 1 is converted to the system principle diagram of DWG file for the dft file of the present invention;
Fig. 2 is converted to the method workflow diagram of DWG file for the dft file of the present invention.
Embodiment
To be easy to understand the technical means, the inventive features, the objects and the advantages of the present invention, with reference to
Embodiment, is expanded on further the present invention.
Referring to Fig. 1, the system that dft file of the invention is converted to DWG file includes
User's input module, shows for selecting dft file path, selection DWG file outgoing route, setting in DWG file
Show font, linear proportional and the title bar template path of word;
File modular converter, user is by the dft file by calling the object model component that Solid Edge are provided to turn
Interim DWG file is changed to, lines, size marking, block, word, title bar, frame in interim DWG file etc. is traveled through and owns
Entity, and all entity informations are preserved into object intersection, the title bar and frame in object intersection are deleted, is retained remaining
The entity informations such as lines, size marking, block, word, the method for calling Auto CAD object model components to provide again opens mark
Column template is inscribed as new Drawing zone, the entities such as lines, size marking, block, word are taken out from the object intersection, is inserted into new
In Drawing zone, and delete interim DWG file;
Elemental recognition module, for all entities in traverse object intersection, and carries out judging to divide to the affiliated type of entity
Class;
DWG document process modules, judge entity attribute for word, then by changing the Font attributes of text entity to word
Font is modified, and judges that entity attribute for setting line style, is then modified by changing scale attributes to linear proportional.
Referring to Fig. 2, the method that dft file of the invention is converted to DWG file specifically includes following several steps:
(a) select and be loaded into the dft file for needing to be converted into DWG formatted files;
(b) font, the linear proportional that word is shown in DWG file are set;
(c) title bar template path, DWG file outgoing route in DWG file are set;
(d) dft file is converted to interim DWG file by the object model component for calling Solid Edge to provide;
(e) object model component for calling Auto CAD to provide travels through lines, size mark in the interim DWG file
All entities such as note, block, word, title bar, frame, and all entity informations are preserved into object intersection;
(f) title bar and frame in object intersection are deleted, retains the entities such as remaining lines, size marking, block, word
Information;
(g) method for calling Auto CAD object model components to provide again opens title bar template as new Drawing zone,
The entities such as lines, size marking, block, word are taken out from the object intersection, are inserted into new Drawing zone, and delete interim
DWG file;
(h) all entities in the object model component traverse object intersection of Auto CAD offers are provided, and to entity institute
Category type is judged that entity attribute is word, then character script is modified by changing the Font attributes of text entity.
Entity attribute is setting line style, then linear proportional is modified by changing scale attributes, after the completion of all operations, preserves new
Drawing zone is to predetermined location.
The general principle and principal character and advantages of the present invention of the present invention has been shown and described above.The technology of the industry
Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and the simply explanation described in above-described embodiment and specification is originally
The principle of invention, without departing from the spirit and scope of the present invention, various changes and modifications of the present invention are possible, these changes
Change and improvement all fall within the protetion scope of the claimed invention.The claimed scope of the invention by appended claims and its
Equivalent thereof.
Claims (6)
1. the system that a kind of batch is converted to dft file DWG file, it is characterised in that including
User's input module, text is shown for selecting dft file path, selection DWG file outgoing route, setting in DWG file
Font, linear proportional and the title bar template path of word;
The dft file is converted to interim DWG file by file modular converter, user, travels through the institute in the interim DWG file
There is entity information, all entity informations include lines, size marking, block, word, title bar and frame, and all entities are believed
Breath is preserved into object intersection, deletes title bar and frame in the object intersection, retain remaining lines, size marking,
Block and word;Title bar template is opened as new Drawing zone, lines, size marking, block and text are taken out from the object intersection
Word, is inserted into new Drawing zone, and deletes interim DWG file;
Elemental recognition module, for all entity informations in traverse object intersection, and carries out judging to divide to the affiliated type of entity
Class;
DWG document process modules, if it is determined that entity attribute is word, then by changing the Font attributes of text entity to word
Font is modified, if it is determined that entity attribute is setting line style, then linear proportional is modified by changing scale attributes.
2. the system that batch according to claim 1 is converted to dft file DWG file, it is characterised in that the DFT
File is converted to interim DWG file by the object model component for calling Solid Edge to provide.
3. the system that batch according to claim 1 is converted to dft file DWG file, it is characterised in that call Auto
The method that CAD object model components are provided opens title bar template and is used as new Drawing zone.
4. a kind of method that batch is converted to dft file DWG file, it is characterised in that specifically include following several steps:
(a) select and be loaded into the dft file for needing to be converted into DWG formatted files;
(b) font, the linear proportional that word is shown in DWG file are set;
(c) title bar template path, DWG file outgoing route in DWG file are set;
(d) dft file is converted into interim DWG file;
(e) lines, size marking, block, word, title bar and the frame in the interim DWG file are traveled through, and by all entities
Information is preserved into object intersection;
(f) title bar and frame in the object intersection are deleted, retains remaining lines, size marking, block and word;
(g) method for calling Auto CAD object model components to provide opens title bar template as new Drawing zone, from described right
As taking out lines, size marking, block and word in intersection, it is inserted into new Drawing zone, and delete interim DWG file;
(h) all entities in the object model component traverse object intersection of Auto CAD offers are provided, and to the affiliated class of entity
Type is judged, if entity attribute is word, character script is modified by the Font attributes for changing text entity;
If entity attribute is setting line style, linear proportional is modified by changing scale attributes;Finally preserve new Drawing zone
To predetermined location.
5. the method that batch according to claim 4 is converted to dft file DWG file, it is characterised in that step (d)
In, the dft file is converted to interim DWG file by the object model component for calling Solid Edge to provide.
6. the method that batch according to claim 4 is converted to dft file DWG file, it is characterised in that step (e)
In, the object model component for calling Auto CAD to provide travels through lines, size marking, block, text in the interim DWG file
Word, title bar and frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710332591.6A CN107229687B (en) | 2017-05-12 | 2017-05-12 | Dft file is converted to the system and method for DWG file by a kind of batch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710332591.6A CN107229687B (en) | 2017-05-12 | 2017-05-12 | Dft file is converted to the system and method for DWG file by a kind of batch |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107229687A true CN107229687A (en) | 2017-10-03 |
CN107229687B CN107229687B (en) | 2018-07-06 |
Family
ID=59933361
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710332591.6A Active CN107229687B (en) | 2017-05-12 | 2017-05-12 | Dft file is converted to the system and method for DWG file by a kind of batch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107229687B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109657324A (en) * | 2018-12-13 | 2019-04-19 | 江西金格科技股份有限公司 | A kind of figure regeneration techniques based on DWG |
CN116932499A (en) * | 2023-08-15 | 2023-10-24 | 天河智造(北京)科技股份有限公司 | Method for modifying labels of DWG format files in batches |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060041503A1 (en) * | 2004-08-21 | 2006-02-23 | Blair William R | Collaborative negotiation methods, systems, and apparatuses for extended commerce |
CN102509314A (en) * | 2011-09-21 | 2012-06-20 | 北京农业信息技术研究中心 | Quick generating method for sunlight greenhouse construction drawing |
-
2017
- 2017-05-12 CN CN201710332591.6A patent/CN107229687B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060041503A1 (en) * | 2004-08-21 | 2006-02-23 | Blair William R | Collaborative negotiation methods, systems, and apparatuses for extended commerce |
CN102509314A (en) * | 2011-09-21 | 2012-06-20 | 北京农业信息技术研究中心 | Quick generating method for sunlight greenhouse construction drawing |
Non-Patent Citations (1)
Title |
---|
李欣: "PCCAD与Solid Edge的相互转换", 《金属加工(冷加工)》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109657324A (en) * | 2018-12-13 | 2019-04-19 | 江西金格科技股份有限公司 | A kind of figure regeneration techniques based on DWG |
CN109657324B (en) * | 2018-12-13 | 2023-02-03 | 江西金格科技有限公司 | DWG-based graph regeneration technology |
CN116932499A (en) * | 2023-08-15 | 2023-10-24 | 天河智造(北京)科技股份有限公司 | Method for modifying labels of DWG format files in batches |
CN116932499B (en) * | 2023-08-15 | 2024-02-20 | 天河智造(北京)科技股份有限公司 | Method for modifying labels of DWG format files in batches |
Also Published As
Publication number | Publication date |
---|---|
CN107229687B (en) | 2018-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4843867B2 (en) | Document processing apparatus, document processing method, document processing program, and recording medium | |
US7409666B2 (en) | Automated PCB manufacturing documentation release package system and method | |
US6230305B1 (en) | Methods and apparatus for configuring schematic diagrams | |
CN111259873B (en) | Table data extraction method and device | |
JP2007072528A (en) | Method, program and device for analyzing document structure | |
JP2007095102A (en) | Document processor and document processing method | |
CN108363693A (en) | Text handling method and device | |
CN102968539A (en) | Method for massively and quickly generating format drawing | |
CN107229687B (en) | Dft file is converted to the system and method for DWG file by a kind of batch | |
CN103186365B (en) | A kind of method and system generating steering order according to character contour change | |
CN103729516A (en) | Three-dimensional technology inverted sequence modeling method and device | |
KR101955017B1 (en) | Editing structure for chinese character and chinese education material | |
JP2016132538A (en) | Carrying-in and installation work plan support device and carrying-in and installation work plan support method | |
US20140115447A1 (en) | Centering Mathematical Objects in Documents | |
WO2007049800A1 (en) | Document creation support device | |
CN107240150A (en) | A kind of three-dimensional tube numeral dissolves drawing method | |
CN111353284B (en) | Part diagram title bar filling method, system and storage medium | |
CN111581815A (en) | XML-based process model ontology construction method | |
CN103729512A (en) | Three-dimensional technology modeling method and device | |
JPH10143517A (en) | Document generation device | |
JP7430219B2 (en) | Document information structuring device, document information structuring method and program | |
CN115221841B (en) | WEB-based engineering symbol processing method | |
JPH0716860B2 (en) | Automatic processing data creation device based on 2D CAD drawings | |
KR20170050338A (en) | Data structuring method | |
CN107908813B (en) | Urban planning digital terrain parameterization processing method based on ObjectARX |
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 | ||
CB03 | Change of inventor or designer information | ||
CB03 | Change of inventor or designer information |
Inventor after: Chen Jianye Inventor after: Zhang Xin Inventor after: Lv Xiaojun Inventor before: Chen Jianye |
|
GR01 | Patent grant | ||
GR01 | Patent grant |