CN106777145A - A kind of interpretation method based on DWG formatted files - Google Patents
A kind of interpretation method based on DWG formatted files Download PDFInfo
- Publication number
- CN106777145A CN106777145A CN201611179215.XA CN201611179215A CN106777145A CN 106777145 A CN106777145 A CN 106777145A CN 201611179215 A CN201611179215 A CN 201611179215A CN 106777145 A CN106777145 A CN 106777145A
- Authority
- CN
- China
- Prior art keywords
- translation
- layer
- formatted files
- data
- dxf
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/178—Techniques for file synchronisation in file systems
- G06F16/1794—Details of file format conversion
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)
- Machine Translation (AREA)
Abstract
The invention discloses a kind of interpretation method based on DWG formatted files, comprise the following steps:Translate rear DXF formatted files and obtain step:Obtain the DXF formatted files with translation data;Newly-built translation figure layer step, the newly-built translation figure layer on the DXF formatted files with translation data;Translation data and translation figure layer are set up corresponding relation by translation figure layer relation establishment step;Deriving step, is converted into the DXF formatted files with translation data and translation figure layer DWG formatted files and derives;Just having the method can effectively reduce the workload of later stage user adjustment.
Description
Technical field
The present invention relates to document translation technical field, and in particular to a kind of interpretation method based on DWG formatted files.
Background technology
DWG formatted files are that a kind of drawing that AutoCAD is founded preserves form, have become the reference format of D CAD,
A lot of other CAD also directly use DWG working documents by default for compatible AutoCAD.People make drawing when except
Many mark property or illustrative text message are additionally provided with outside figure in drawing, in information exchange, often due to language
Difference, it is necessary to carry out translation treatment to the text message in DWG formatted files after derive again, prior art is to DWG forms
The translation processing mode of file is:DWG formatted files are converted into DXF formatted files, the coding using DXF formatted files is special
Property, the text message in DXF formatted files is completed to extract and store automatically, translation is backfilling into original automatically after the completion of translation
The position of text message.To above-mentioned translated document, user is in use, it is sometimes desirable to which translation is manually adjusted.Now, adopt
Translated with this kind of mode, there is problems with:When DWG formatted files have multiple figure layers, user is during regulation manually
Figure layer where needing to find translation could be adjusted to the part, when the translation for needing to adjust is more, there is multiple figure layer
The problem of switching, the workload of user's adjustment is big.
The content of the invention
In order to solve the above-mentioned technical problem the present invention provides a kind of interpretation method based on DWG formatted files, and it can be effective
Reduce the later stage user adjustment workload.
The present invention is achieved through the following technical solutions:
A kind of interpretation method based on DWG formatted files, comprises the following steps:
Translate rear DXF formatted files and obtain step:Obtain the DXF formatted files with translation data;
Newly-built translation figure layer step, the newly-built translation figure layer on the DXF formatted files with translation data;
Translation data and translation figure layer are set up corresponding relation by translation figure layer relation establishment step;
Deriving step, is converted into the DXF formatted files with translation data and translation figure layer DWG formatted files and leads
Go out.
This method is improved for existing DWG formatted files interpretation method, same as the prior art the step of early stage, this
The innovative point of scheme is the foundation of translation figure layer, a newly-built translation on the basis of the DXF formatted files after existing translation
Figure layer, translation figure layer and it is all of have there is between the figure layer of translation corresponding relation, when the later stage adjusts, the direct paginal translation texts and pictures of user
Layer is operated, and eliminates the searching of figure layer and switch operating during adjusting, and effectively alleviates the workload of user.
Preferably, the translation figure layer relation establishment step is specially:The translation of each figure layer is mapped to translation figure layer
In, the mapping of mapping and translation data including translation position.User when adjusting in the later stage, directly to the number of version
According to being adjusted, according to mapping relations, you can the translation data to each figure layer are adjusted.
Further, translation position includes the coordinate of figure layer where figure layer, translation where translation.
Further, the mapping of translation position is specially the coordinate for making translation in place figure layer with translation in translation figure layer
Coordinate is identical.
Preferably, it is described translate rear DXF formatted files and obtain step specifically include:
Analyzing step, after DWG formatted files are converted into DXF formatted files, extracts the text to be translated in DXF formatted files
The positional information of notebook data and text data to be translated;
Translation steps, during text data to be translated called into predetermined translating equipment, by human translation or machine translation
Generation translation data corresponding with text data to be translated;
Translation data are write DXF forms by translation write step according to the positional information of corresponding text data to be translated
Corresponding position in file so that DXF formatted files are the DXF formatted files with translation data.
The present invention compared with prior art, has the following advantages and advantages:
The present invention by a newly-built translation figure layer on the basis of existing cypher text, with all of translate by translation figure layer
There is corresponding relation, when the later stage adjusts, the direct paginal translation texts and pictures layer of user is operated, and eliminates adjustment between the figure layer of text
During figure layer searching and switch operating, effectively alleviate the workload of user.
Specific embodiment
To make the object, technical solutions and advantages of the present invention become more apparent, with reference to embodiment, the present invention is made
Further to describe in detail, exemplary embodiment of the invention and its explanation are only used for explaining the present invention, are not intended as to this
The restriction of invention.
Embodiment 1
A kind of interpretation method based on DWG formatted files, comprises the following steps:
Analyzing step, after DWG formatted files are converted into DXF formatted files, extracts the text to be translated in DXF formatted files
The positional information of notebook data and text data to be translated;
Translation steps, during text data to be translated called into predetermined translating equipment, by human translation or machine translation
Generation translation data corresponding with text data to be translated;
Translation data are write DXF forms by translation write step according to the positional information of corresponding text data to be translated
Corresponding position in file so that DXF formatted files are the DXF formatted files with translation data;
Newly-built translation figure layer step, the newly-built translation figure layer on the DXF formatted files with translation data;
Translation data and translation figure layer are set up corresponding relation by translation figure layer relation establishment step;
Deriving step, is converted into the DXF formatted files with translation data and translation figure layer DWG formatted files and leads
Go out.
To obtain step identical with existing method for the rear DXF formatted files translated of the present embodiment, i.e., walked including analyzing step, translation
Suddenly, translation write step.On its concrete methods of realizing, it has been documented in the prior art.Now only translating rear DXF forms
File obtains the later operating method of step and is described in detail.
Embodiment 2:
In translation figure layer relation establishment step:The translation of each figure layer is mapped in translation figure layer, including translation
The mapping of position and the mapping of translation data.Wherein, translation position includes the coordinate of figure layer where figure layer, translation where translation.
For the editor for reducing file compilation process and be easy to each figure layer translation, translation place figure layer coordinate with it is right
Answer translation identical in the coordinate of translation figure layer.The coordinate phase of the translation coordinate position of i.e. each figure layer and corresponding translation in translation figure layer
Together, the coordinate position adjustment of paginal translation texts and pictures layer is the adjustment to the translation coordinate position of each figure layer, makes adjustment process more directly perceived.
In order to be best understood from this programme, illustrated with an example.
For example, figure layer 1 includes translation data 1:A, translation data 2:B, it is respectively in the coordinate position of the figure layer:(-
153.5092862294951,579.433621858247), (- 153.5092862294951,581.4336218582471);Figure
Layer 2 includes translation data 3:C, its coordinate is to be in the coordinate position of the figure layer:(- 157.5092862294951,
581.4336218582471);Figure layer 3 includes translation data 4:D, its coordinate is to be in the coordinate position of the figure layer:(-
157.5092862294951,579.433621858247).
Translation figure layer relation establishment step is, in newly-built figure layer 0, translation data 1 to be respectively written into figure layer 0:A, translation number
According to 2:B, translation data 3:C, translation data 4:D, its coordinate position in translation figure layer be respectively (-
153.5092862294951,579.433621858247), (- 153.5092862294951,581.4336218582471), (-
157.5092862294951,581.4336218582471), (- 157.5092862294951,579.433621858247).
Because the translation of translation figure layer is mapping relations with the translation of each figure layer, the translation of translation figure layer is directly adjusted
The adjustment to each figure layer translation is completed, it is convenient and swift, it is to avoid the searching of figure layer and switch operating during adjustment, it is effective to mitigate
The workload of user.
Above-described specific embodiment, has been carried out further to the purpose of the present invention, technical scheme and beneficial effect
Describe in detail, should be understood that and the foregoing is only specific embodiment of the invention, be not intended to limit the present invention
Protection domain, all any modification, equivalent substitution and improvements within the spirit and principles in the present invention, done etc. all should include
Within protection scope of the present invention.
Claims (5)
1. a kind of interpretation method based on DWG formatted files, it is characterised in that comprise the following steps:
Translate rear DXF formatted files and obtain step:Obtain the DXF formatted files with translation data;
Newly-built translation figure layer step, the newly-built translation figure layer on the DXF formatted files with translation data;
Translation data and translation figure layer are set up corresponding relation by translation figure layer relation establishment step;
Deriving step, is converted into the DXF formatted files with translation data and translation figure layer DWG formatted files and derives.
2. a kind of interpretation method based on DWG formatted files according to claim 1, it is characterised in that:The translation figure
Layer relation establishment step is specially:The translation of each figure layer is mapped in translation figure layer, including translation position mapping and
The mapping of translation data.
3. a kind of interpretation method based on DWG formatted files according to claim 2, it is characterised in that:Wrap translation position
Include the coordinate of figure layer where figure layer, translation where translation.
4. a kind of interpretation method based on DWG formatted files according to claim 2, it is characterised in that:Translation position
Mapping is specially makes translation identical in the coordinate of translation figure layer with translation in the coordinate of place figure layer.
5. a kind of interpretation method based on DWG formatted files according to claim 1, it is characterised in that
It is described translate rear DXF formatted files and obtain step specifically include:
Analyzing step, after DWG formatted files are converted into DXF formatted files, extracts the textual data to be translated in DXF formatted files
According to the positional information with text data to be translated;
Translation steps, during text data to be translated called into predetermined translating equipment, are generated by human translation or machine translation
Translation data corresponding with text data to be translated;
Translation data are write DXF formatted files by translation write step according to the positional information of corresponding text data to be translated
In corresponding position so that DXF formatted files are the DXF formatted files with translation data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611179215.XA CN106777145A (en) | 2016-12-19 | 2016-12-19 | A kind of interpretation method based on DWG formatted files |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611179215.XA CN106777145A (en) | 2016-12-19 | 2016-12-19 | A kind of interpretation method based on DWG formatted files |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106777145A true CN106777145A (en) | 2017-05-31 |
Family
ID=58890519
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611179215.XA Pending CN106777145A (en) | 2016-12-19 | 2016-12-19 | A kind of interpretation method based on DWG formatted files |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106777145A (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105975461A (en) * | 2016-05-27 | 2016-09-28 | 成都优译信息技术有限公司 | Method for newly adding translation in DWG format file |
-
2016
- 2016-12-19 CN CN201611179215.XA patent/CN106777145A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105975461A (en) * | 2016-05-27 | 2016-09-28 | 成都优译信息技术有限公司 | Method for newly adding translation in DWG format file |
Non-Patent Citations (2)
Title |
---|
李宇鹏等: "《机械制图》", 31 December 2015, 中国农业科学技术出版社 * |
赵岩等: "《中文AutoCAD2014辅助设计案例精讲》", 28 February 2014, 北京希望电子出版社 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101477517B (en) | Multi-point remote synchronizing method for OFFICE documents editing | |
WO2006116314A3 (en) | Improved machine translation using vector space representations | |
EP1818845A3 (en) | Method and apparatus for defining digital rights management policies | |
WO2006041554A3 (en) | Document processing and management approach to editing a document in a mark up language environment using undoable commands | |
WO2001037170A3 (en) | Forms creation method and e-commerce method | |
CN103870583A (en) | Relational-database-based online and controllable browsing method for PDF document | |
CN104063263A (en) | Method and device for secondary flow treatment | |
WO2002077875A3 (en) | Methods and apparatus for processing data in a content network | |
CN105550165A (en) | Plug-in and method capable of importing webpage article into webpage text editor | |
CN106649229A (en) | PDF file splitting method, PDF file splitting system and terminal | |
CN105824794A (en) | Annotation adding method and device | |
CN104462044A (en) | Recognizing and editing method and device of tabular images | |
CN102999488B (en) | Transcription platform system and its implementation | |
JP2018205945A (en) | Automatic dialogue response document creation artificial intelligence device | |
CN106777145A (en) | A kind of interpretation method based on DWG formatted files | |
CN106021242A (en) | Write-back system of drawing interpretation data in DWG format and write-back method thereof | |
CN109343835A (en) | A kind of rapid build business scaffold code instrumentation based on template | |
CN106649248A (en) | Single-line text alignment method and translated file processing method of DWG file | |
CN106650083A (en) | DWG format file-based translation data processing method | |
CN106021197A (en) | Translation system of DWG-format files and translation method | |
Umar et al. | Evidence on real exchange rate–Inflation causality: An application of Toda-Yamamoto dynamic Granger causality test | |
CN104462732B (en) | A kind of transforming plant source device modeling implementation method based on DL/T860 | |
CN107609226A (en) | A kind of method that building construction process inspection is carried out using VR virtual images | |
CN106547553A (en) | A kind of software development environment method for setting up object to be developed | |
Lee | Crowdsourced translation and machine translation and their implications in the digital age: A case study of Flitto: A case study of Flitto |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170531 |