View Issue Details

IDProjectCategoryView StatusLast Update
0002035FreeCADFeaturepublic2015-04-27 14:26
Reporteryorik Assigned Toyorik  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionnot fixable 
Fixed in Version0.16 
Summary0002035: Draft - Add units support to the DXF importer
DescriptionImported DXF files that contain units information should be treated accordingly.


For reference:
$INSUNITS 70 = 1 = inches
$DIMLUNIT 70 = 4 = Architectual I also tried with 2 = decimal
Additional Informationhttp://forum.freecadweb.org/posting.php?mode=reply&f=3&t=10341
TagsNo tags attached.
FreeCAD Information

Activities

yorik

2015-04-02 01:41

administrator   ~0005959

h = importDXF.drawing.header
for d in h.data:
    if d[1] == "$INSUNITS":
        print h.data[h.data.index(d)+1][1]

From http://images.autodesk.com/adsk/files/acad_dxf0.pdf

Default drawing units for AutoCAD DesignCenter blocks:
0 = Unitless
1 = Inches
2 = Feet
3 = Miles
4 = Millimeters
5 = Centimeters
6 = Meters
7 = Kilometers
8 = Microinches
9 = Mils
10 = Yards
11 = Angstroms
12 = Nanometers
13 = Microns
14 = Decimeters
15 = Decameters
16 = Hectometers
17 = Gigameters
18 = Astronomical units
19 = Light years
20 = Parsecs

yorik

2015-04-27 14:26

administrator   ~0006092

These settings actually indicate a unit in which you wish to import blocks. It is not meant to indicate the units of the DXF file itself. As far as I could see, there is no setting in the DXF reference that allow to specify in which unit the file is made.

I think it's best not to use the settings above as it might not indicate the wish of the user. I'll close this issue until new info arises

Issue History

Date Modified Username Field Change
2015-03-31 13:54 yorik New Issue
2015-03-31 13:54 yorik Status new => assigned
2015-03-31 13:54 yorik Assigned To => yorik
2015-04-02 01:41 yorik Note Added: 0005959
2015-04-27 14:26 yorik Note Added: 0006092
2015-04-27 14:26 yorik Status assigned => closed
2015-04-27 14:26 yorik Resolution open => not fixable
2015-04-27 14:26 yorik Fixed in Version => 0.16