CN107229687B - Dft file is converted to the system and method for DWG file by a kind of batch - Google Patents
Dft file is converted to the system and method for DWG file by a kind of batch Download PDFInfo
- Publication number
- CN107229687B CN107229687B CN201710332591.6A CN201710332591A CN107229687B CN 107229687 B CN107229687 B CN 107229687B CN 201710332591 A CN201710332591 A CN 201710332591A CN 107229687 B CN107229687 B CN 107229687B
- Authority
- CN
- China
- Prior art keywords
- file
- dwg
- word
- dft
- interim
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 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 6
- 238000013461 design Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000004883 computer application Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000005194 fractionation Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 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
Dft file is converted to the system and method for DWG file, user's input module the invention discloses a kind of batch;File modular converter, dft file is converted to interim DWG file by user, traverse all entities in interim DWG file, and all entity informations are preserved into object intersection, the title bar and frame in object intersection are deleted, retains remaining entity information, opens title bar template as new Drawing zone, remaining entity information is taken out from the object intersection to be inserted into new Drawing zone, and delete interim DWG file;Elemental recognition module, for all entities in traverse object intersection, and affiliated type carries out judgement classification to entity;With DWG document process modules.The transformed DWG formatted files of the present invention can avoid word dislocation, linear proportional mistake, title bar that from cannot being identified, and realize DFT to the function and high conversion efficiency of DWG file Batch conversion.
Description
Technical field
Dft file the present invention relates to a kind of batch is converted to the system and method for DWG file, belongs to computer application skill
Art field.
Background technology
With being constantly progressive for computer technology, Computerized three-dimensional designing technique is grown rapidly, and three dimensional design has
The features such as three-dimensional sense is strong, parametrization, modularization, interference checking, cost accurately control and " no figureization " produces, many enterprises are
Through starting to be changed from two-dimensional design to three dimensional design, in this transition process, since many enterprises use the software of independent development
The management of drawing item block, title bar and bill of materials 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 be carried out parts fractionation and be converted to X-Y scheme file (DFT
Form), and dft file is converted to the cad file (DWG forms) that can be identified.
Solid Edge are used 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 are converted to DWG formatted files by Solid Edge softwares
There are the following problems in journey:Transformed DWG file is susceptible to word dislocation, word mess code, linear proportional mistake, drawing mark
Topic column, item block become block format, it is impossible to the information in title bar and item block is read by third party software, lead to not and
Other software system integrations;If a large amount of dft file is converted to DWG file, need by manual selecting file one by one into
Row conversion, it is impossible to carry out batch and automatically process, transformation efficiency is low.
Invention content
In view of the deficienciess of the prior art, it is an object of the present invention to provide a kind of batches to be converted to DWG file by dft file
System and method, transformed DWG formatted files can avoid word dislocation, linear proportional mistake, title bar that from cannot 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 dft file is converted to DWG file by a kind of batch of the present invention, including
User's input module, for selecting to show in dft file path, selection DWG file outgoing route, setting 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, traverses 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 in object intersection, deletes the title bar and frame in the object intersection, retain remaining lines, size marking,
Block and word;The method that Auto CAD object model components provide is called to open title bar template as new Drawing zone again, 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, for all entity informations in traverse object intersection, and affiliated type is sentenced to 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
Modify to character script, if it is determined that entity attribute for setting line style, then by change scale attributes to linear proportional into
Row modification.
Above-mentioned dft file is converted to interim DWG file by the object model component that Solid Edge is called to provide.
The method that dft file is converted to DWG file by the batch of the present invention, specifically includes the following steps:
(a) it selects and is 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 that Solid Edge is called to provide;
(e) object model component that Auto CAD are provided is called to traverse lines, size mark in the interim DWG file
Note, block, word, title bar and frame;And all entity informations are preserved into object intersection;
(f) title bar and frame in object intersection are deleted, retains remaining lines, size marking, block and word;
(g) method that Auto CAD object model components is called 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 called, and to entity institute
Belong to type to be judged, if entity attribute is word, character script is carried out by the Font attributes for changing text entity
Modification;If entity attribute is setting line style, modified by changing scale attributes to linear proportional, all operations are completed
Afterwards, new Drawing zone is preserved to predetermined location.
The DWG file that the present invention generates efficiently solves the word dislocation or random caused by font difference in transfer process
Code, all linear seem all are that straight line, title panel information cannot be by PLM software grabs caused by linear proportional mistake;Simultaneously
The present invention can be also used for batch processing DFT format conversions as DWG forms.
Description of the drawings
Fig. 1 is that the dft file of the present invention is converted to the system principle diagram of DWG file;
Fig. 2 is that the dft file of the present invention is converted to the method work flow diagram of DWG file.
Specific embodiment
To be easy to understand the technical means, the creative features, the aims and the efficiencies achieved by the present invention, with reference to
Specific embodiment, the present invention is further explained.
Referring to Fig. 1, the system that dft file of the invention is converted to DWG file includes
User's input module, for selecting to show in dft file path, selection DWG file outgoing route, setting DWG file
Show font, linear proportional and the title bar template path of word;
File modular converter, user turn the dft file by the object model component that Solid Edge is called to provide
Interim DWG file is changed to, lines, size marking, block, word, title bar, frame in interim DWG file etc. is traversed 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 call the method that Auto CAD object model components provide to open mark again
Column template is inscribed as new Drawing zone, the entities such as lines, size marking, block, word are taken out from the object intersection, are inserted into new
In Drawing zone, and delete interim DWG file;
Elemental recognition module, for all entities in traverse object intersection, and affiliated type carries out judgement point to 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 to set line style, then modifies to linear proportional by changing scale attributes.
Referring to Fig. 2, method that dft file of the invention is converted to DWG file specifically includes the following steps:
(a) it selects and is 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 that Solid Edge is called to provide;
(e) object model component that Auto CAD are provided is called to traverse 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 that Auto CAD object model components is called 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 are deleted interim
DWG file;
(h) all entities in the object model component traverse object intersection of Auto CAD offers are called, and to entity institute
Belong to type and judged that entity attribute is word, then modified by changing the Font attributes of text entity to character script.
Entity attribute is setting line style, then is modified by changing scale attributes to linear proportional, after the completion of all operations, is preserved new
Drawing zone is to predetermined location.
The basic principles, main features and the advantages of the invention have 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 above embodiments and description only describe this
The principle of invention, without departing from the spirit and scope of the present invention, various changes and improvements may be made to the invention, 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 (2)
1. a kind of system that dft file is converted to DWG file by batch, which is characterized in that including
User's input module, for selecting to show text in dft file path, selection DWG file outgoing route, setting 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, traverses 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 in object intersection, deletes the 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 affiliated type carries out judgement point to 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, is then modified by changing scale attributes to linear proportional;
The dft file is converted to interim DWG file by the object model component that Solid Edge is called to provide;Call Auto
The method that CAD object model components provide opens title bar template as new Drawing zone.
2. a kind of method that dft file is converted to DWG file by batch, which is characterized in that specifically include the following steps:
(a) it selects and is 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 traversed, 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 that Auto CAD object model components provide is called to open 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, and the affiliated class to entity are provided
Type is judged, if entity attribute is word, is modified by the Font attributes for changing text entity to character script;
If entity attribute is setting line style, modified by changing scale attributes to linear proportional;Finally preserve new Drawing zone
To predetermined location;
In step (d), call the object model component that Solid Edge are provided that the dft file is converted to interim DWG file;
In step (e), the object model component that Auto CAD are provided is called to traverse the lines in the interim DWG file, size
Mark, block, 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 CN107229687A (en) | 2017-10-03 |
CN107229687B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109657324B (en) * | 2018-12-13 | 2023-02-03 | 江西金格科技有限公司 | DWG-based graph regeneration technology |
CN116932499B (en) * | 2023-08-15 | 2024-02-20 | 天河智造(北京)科技股份有限公司 | Method for modifying labels of DWG format files in batches |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102509314A (en) * | 2011-09-21 | 2012-06-20 | 北京农业信息技术研究中心 | Quick generating method for sunlight greenhouse construction drawing |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU2005277150B2 (en) * | 2004-08-21 | 2011-05-26 | Directworks, Inc. | Methods, systems, and apparatuses for extended enterprise commerce |
-
2017
- 2017-05-12 CN CN201710332591.6A patent/CN107229687B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102509314A (en) * | 2011-09-21 | 2012-06-20 | 北京农业信息技术研究中心 | Quick generating method for sunlight greenhouse construction drawing |
Non-Patent Citations (1)
Title |
---|
PCCAD与Solid Edge的相互转换;李欣;《金属加工(冷加工)》;20150301(第05期);第46-48页 * |
Also Published As
Publication number | Publication date |
---|---|
CN107229687A (en) | 2017-10-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20060209093A1 (en) | Method and computer-readable medium for generating graphics having a finite number of dynamically sized and positioned shapes | |
CN110334332A (en) | Presentation generation method and device, storage medium and electronic equipment | |
CN105279301B (en) | A kind of planning and designing method of customizable output | |
CN110096270A (en) | A kind of design drawing method for splitting and system based on .NET plug-in unit | |
CN109933765B (en) | Method for extracting Excel table content to CAD table | |
CN102830979A (en) | CAD (computer-aided design) drawing information batch processing method based on ObjectArx | |
CN107229687B (en) | Dft file is converted to the system and method for DWG file by a kind of batch | |
CN106294606A (en) | A kind of CAE document conversion method based on general read-write framework and device | |
CN104063365A (en) | Method for inserting object in PDF document | |
CN102968539A (en) | Method for massively and quickly generating format drawing | |
CN105045948B (en) | A kind of transmitter guard box configuration diagram automatic batch generation method | |
CN104298705A (en) | Converting method of relational data and unstructured data | |
CN101038583B (en) | Gold report generating and generating method thereof | |
CN106446083A (en) | Route indication method and mobile terminal | |
CN101452383A (en) | Interface antetype design method and design system | |
CN103186365B (en) | A kind of method and system generating steering order according to character contour change | |
CN109257407A (en) | The batch method for uploading and system of industrial part data | |
JPH06251007A (en) | Table data input device | |
CN116069202A (en) | Operating condition radar chart processing method and device | |
CN103729512A (en) | Three-dimensional technology modeling method and device | |
CN107240150A (en) | A kind of three-dimensional tube numeral dissolves drawing method | |
CN103177064A (en) | Method for admitting appointed content of electronic document automatically | |
CN110705238A (en) | Product technical manual generation method and device and computer readable storage medium | |
Shih | Parametric Modeling with NX 12 | |
CN108363779A (en) | A kind of method of batch autocad file intelligence inserting block |
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 |
Inventor after: Chen Jianye Inventor after: Zhang Xin Inventor after: Lv Xiaojun Inventor before: Chen Jianye |
|
CB03 | Change of inventor or designer information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |