John Scheffel
10-09-2003, 12:14 PM
Please use this thead to post tips about importing DXF files into Drafting/ME10 or Annotation.
Here is a tip I received from Eric Barton of Agilent some time ago.
If you import DXF file in and the size is scaled up or down by a factor 25.4, this is the result of a Metric-English conversion problem. AutoCAD has no internal notion of units (mm vs. inch vs. feet vs. miles vs. light years) but it does keep track of English vs. Metric systems. This controlled by an environment variable on the PC running AutoCAD.
If the wrong setting was used, it can be fixed by a simple edit to the DXF file. DXF files are plain text, so they are easy to edit. To change the variable:
Open the .dxf file in a text editor (NotePad or WordPad will work.)
Search for the string $MEASUREMENT. You should find a section that looks like this:
$MEASUREMENT
70
X
0
If the X is a 0, then it will import as English (inches in CoCreate apps). If the X is a 1, then it will import as Metric (mm in CoCreate apps). Note that the 4th line may be a different number.
Change the X to the other value.
Save the file using File, Save. If you use Save As... to rename the file, enclose the file name in double quotes ("filename.dxf"), otherwise a .txt extension will automatically be added to the name.
Here is a tip I received from Eric Barton of Agilent some time ago.
If you import DXF file in and the size is scaled up or down by a factor 25.4, this is the result of a Metric-English conversion problem. AutoCAD has no internal notion of units (mm vs. inch vs. feet vs. miles vs. light years) but it does keep track of English vs. Metric systems. This controlled by an environment variable on the PC running AutoCAD.
If the wrong setting was used, it can be fixed by a simple edit to the DXF file. DXF files are plain text, so they are easy to edit. To change the variable:
Open the .dxf file in a text editor (NotePad or WordPad will work.)
Search for the string $MEASUREMENT. You should find a section that looks like this:
$MEASUREMENT
70
X
0
If the X is a 0, then it will import as English (inches in CoCreate apps). If the X is a 1, then it will import as Metric (mm in CoCreate apps). Note that the 4th line may be a different number.
Change the X to the other value.
Save the file using File, Save. If you use Save As... to rename the file, enclose the file name in double quotes ("filename.dxf"), otherwise a .txt extension will automatically be added to the name.