Method for newly adding translation in DWG format file

A format file and translation technology, applied in the field of document translation, can solve the problems of inconvenient translation of DWG drawings, increase of errors, occupation of human resources, etc., and achieve the effect of reducing translation costs, avoiding errors, and improving translation efficiency

Active Publication Date: 2016-09-28
成都优译信息技术股份有限公司
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The entire process has a great impact on the user's production cost and production time, especially the process of extracting pre-translation text data and post-translation backfilling is very cumbersome, takes up a lot of human resources, and increases the probability of errors. Inconvenience due to translation of drawings

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for newly adding translation in DWG format file
  • Method for newly adding translation in DWG format file
  • Method for newly adding translation in DWG format file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054] The method of adding translation in DWG format file includes the following steps:

[0055] Obtain the DXF format file converted from the DWG format file;

[0056] Parse the DXF format file, obtain the text box position coordinate group code value of the text data to be translated in the DXF format file, obtain the text box height group code value of the text data to be translated in the DXF format file, and the text box position coordinate group of the text data to be translated The code value is: (X, Y), and the code value of the height group of the text box of the text data to be translated is: H;

[0057] Calculate the code value of the text box coordinates of the translation data: (X, Y-H) or (X, Y+H); because the original text or translation can only be achieved visually by adding or subtracting heights on the Y coordinate It is a relationship between top and bottom.

[0058] Write the group code and group code value set of the translated text into the DXF format...

Embodiment 2

[0068] Embodiment 2: implement the processing system of DWG format file translation data on the basis of embodiment 1,

[0069] Comprising: means for receiving files in DWG format,

[0070] means for converting DWG format files into DXF format files,

[0071] means for identifying and extracting text data to be translated in a DXF format file,

[0072] means for identifying and extracting location information of text data to be translated in a DXF file,

[0073] means for storing text data to be translated and location information of the text data to be translated,

[0074] Also comprising: means for invoking the text data to be translated to the translation means,

[0075] A translation device for translation, the translation device generates translation data corresponding to the text data to be translated through manual translation or machine translation after receiving the text data to be translated,

[0076] means for storing translation data,

[0077] Also includes: ...

Embodiment 3

[0089] Such as Figure 1-Figure 4 As shown, the processing method for the translation data of the DWG format file includes the following steps:

[0090] Analyzing step: after converting the DWG format file into a DXF format file, extract the text data to be translated and the positional information of the text data to be translated in the DXF format file;

[0091] Translating step: call the text data to be translated into a predetermined translation device, and generate translation data corresponding to the text data to be translated through manual translation or machine translation;

[0092] Translation writing step: writing the translation data into the corresponding position in the DXF format file according to the position information of the corresponding text data to be translated, so that the DXF format file is a DXF format file with translation data;

[0093] Steps for exporting the translated DWG format file: converting the DXF format file with translation data into a ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for newly adding a translation in a DWG format file. The method comprises the following steps that a DXF format file converted by the DWG format file is obtained; the DXF format file is analyzed, and a textbox position coordinate group code value and a textbox height group code value of to-be-translated text data in the DXF format file are acquired, wherein the textbox position coordinate group code value of the to-be-translated text data is (X,Y), and the textbox height group code value of the to-be-translated text data is H; a textbox coordinate group code value of translation data is calculated to be (X,Y-H) or (X,Y+H); a set of group codes and the group code value of the translation are written into the DXF format file.

Description

technical field [0001] The invention relates to the technology in the field of document translation. Background technique [0002] DWG format file is a drawing storage format created by AutoCAD, which has become the standard format of 2D CAD. Many other CADs also directly use DWG as the default working file in order to be compatible with AutoCAD. When people make drawings, in addition to graphics, there are also many marked or explanatory text information in the drawings. When information is exchanged, often due to language differences, the text information in the DWG format file needs to be translated and re-exported. , the prior art translation processing method for DWG format files is: translators need to install Auto CAD software, then import the DWG format files that need to be translated, and then use the software to extract the text data that needs to be translated from the DWG format files, Then translate the text, and use Auto CAD software to backfill the correspon...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/28G06F17/24
CPCG06F40/166G06F40/40
Inventor 席斌李明王兴强张马成
Owner 成都优译信息技术股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products