View Issue Details

IDProjectCategoryView StatusLast Update
0003494FreeCADBugpublic2021-02-06 06:49
Reportereasyw-fc Assigned To 
PriorityhighSeverityfeatureReproducibilityalways
Status confirmedResolutionopen 
Product Version0.17 
Target Version0.20 
Summary0003494: DXF export (Autodesk DXF 2D type) doesn't add any UNITS field inside the dxf file.
DescriptionFreeCAD DXF export does not add $LUNITS and $INSUNITS both of which are needed for correct importing into any CAD.
$LUNITS and $INSUNITS should be included in the exported file, to specify which units the design is based on.
Autodesk section group codes:
https://www.autodesk.com/techpubs/autocad/acad2000/dxf/header_section_group_codes_dxf_02.htm

Related forum topics:
https://forum.freecadweb.org/viewtopic.php?f=8&t=28925
https://forum.kicad.info/t/units-once-more-dxf-import-trouble/10844
TagsDXF, export, units
FreeCAD Information

Relationships

related to 0003594 new DXF Export Units Toggle 

Activities

easyw-fc

2018-05-25 22:11

reporter  

internal.dxf (1,332 bytes)   
  0
SECTION
  2
HEADER
  9
$ACADVER
  1
AC1009
  9
$INSBASE
 10
0.0
 20
0.0
 30
0.0
  9
$EXTMIN
 10
0.0
 20
0.0
 30
0.0
  9
$EXTMAX
 10
0.0
 20
0.0
 30
0.0
  0
ENDSEC
  0
SECTION
  2
TABLES
  0
TABLE
  2
VPORT
 70
0
  0
ENDTAB
  0
TABLE
  2
LTYPE
 70
1
  0
LTYPE
  2
CONTINUOUS
 70
0
  3
Solid line
 72
65
 73
0
 40
0.0
  0
ENDTAB
  0
TABLE
  2
LAYER
 70
1
  0
LAYER
  2
0
 70
64
 62
7
  6
continuous
  0
ENDTAB
  0
TABLE
  2
STYLE
 70
1
  0
STYLE
  2
STANDARD
 70
0
 40
0
 41
1.0
 50
0.0
 71
0
 42
1
 3
ARIAL.TTF
 4

  0
ENDTAB
  0
TABLE
  2
VIEW
 70
0
  0
ENDTAB
  0
ENDSEC
  0
SECTION
  2
BLOCKS
  0
BLOCK
  8
0
  2
SHAPE2DVIEW
 70
0
 10
0.0
 20
0.0
 30
0.0
  3
SHAPE2DVIEW
  0
LINE
  8
0
 62
0
 10
0.0
 20
0.0
 30
0.0
 11
0.0
 21
10.0
 31
0.0
  0
LINE
  8
0
 62
0
 10
10.0
 20
0.0
 30
0.0
 11
10.0
 21
10.0
 31
0.0
  0
LINE
  8
0
 62
0
 10
0.0
 20
0.0
 30
0.0
 11
10.0
 21
0.0
 31
0.0
  0
LINE
  8
0
 62
0
 10
0.0
 20
10.0
 30
0.0
 11
10.0
 21
10.0
 31
0.0
  0
ENDBLK
  0
ENDSEC
  0
SECTION
  2
ENTITIES
  0
INSERT
  2
SHAPE2DVIEW
  8
0
 62
0
 10
0.0
 20
0.0
 30
0.0
  0
ENDSEC
  0
EOF
internal.dxf (1,332 bytes)   
legacy.dxf (1,332 bytes)   
  0
SECTION
  2
HEADER
  9
$ACADVER
  1
AC1009
  9
$INSBASE
 10
0.0
 20
0.0
 30
0.0
  9
$EXTMIN
 10
0.0
 20
0.0
 30
0.0
  9
$EXTMAX
 10
0.0
 20
0.0
 30
0.0
  0
ENDSEC
  0
SECTION
  2
TABLES
  0
TABLE
  2
VPORT
 70
0
  0
ENDTAB
  0
TABLE
  2
LTYPE
 70
1
  0
LTYPE
  2
CONTINUOUS
 70
0
  3
Solid line
 72
65
 73
0
 40
0.0
  0
ENDTAB
  0
TABLE
  2
LAYER
 70
1
  0
LAYER
  2
0
 70
64
 62
7
  6
continuous
  0
ENDTAB
  0
TABLE
  2
STYLE
 70
1
  0
STYLE
  2
STANDARD
 70
0
 40
0
 41
1.0
 50
0.0
 71
0
 42
1
 3
ARIAL.TTF
 4

  0
ENDTAB
  0
TABLE
  2
VIEW
 70
0
  0
ENDTAB
  0
ENDSEC
  0
SECTION
  2
BLOCKS
  0
BLOCK
  8
0
  2
SHAPE2DVIEW
 70
0
 10
0.0
 20
0.0
 30
0.0
  3
SHAPE2DVIEW
  0
LINE
  8
0
 62
0
 10
0.0
 20
0.0
 30
0.0
 11
0.0
 21
10.0
 31
0.0
  0
LINE
  8
0
 62
0
 10
10.0
 20
0.0
 30
0.0
 11
10.0
 21
10.0
 31
0.0
  0
LINE
  8
0
 62
0
 10
0.0
 20
0.0
 30
0.0
 11
10.0
 21
0.0
 31
0.0
  0
LINE
  8
0
 62
0
 10
0.0
 20
10.0
 30
0.0
 11
10.0
 21
10.0
 31
0.0
  0
ENDBLK
  0
ENDSEC
  0
SECTION
  2
ENTITIES
  0
INSERT
  2
SHAPE2DVIEW
  8
0
 62
0
 10
0.0
 20
0.0
 30
0.0
  0
ENDSEC
  0
EOF
legacy.dxf (1,332 bytes)   

easyw-fc

2018-05-25 22:58

reporter   ~0011278

following the KiCAd forum here some valuable notes:
The fun you find while digging into obscure specifications

$INSUNITS was introduced in the “Autocad 2000” specification for DXF.

This means any export methods set to AC1006 = R10, AC1009 = R11 and R12, AC1012 = R13 or AC1014 = R14. Will not have that tag present if the tool is respecting the export option,

Freecads export is for AC1009 / R12, so it will never include that tag so long as they are following the specification, and to include it would involve them remaking the exporter to support whatever the Autocad 2000 version is.

Before this, It was simply that DXF files where unitless, Most tools like solidworks and Autocad assumed this to be in inches if not specified on import,

Kunda1

2018-05-30 23:22

administrator   ~0011311


I had this issue once too. Back than it turned out the DXF version freecad exports does not use units, it is not in this versions standart. You can check the version by the DXF file header, there is a identifier which you can than relate to the spec version.

The conclusion back than was, that the error is on the importing software site: it needs to check the specification version of the DXF and use units only when supportet by it.

Don't know if this is still valid though it if freecad has upgraded the DXF version.

ickby
ref: https://forum.freecadweb.org/viewtopic.php?f=8&t=28925#p235782

Kunda1

2018-09-14 19:56

administrator   ~0011744

Related: 0003594

rawrpenguinzombies

2018-09-14 20:05

reporter   ~0011745

I am willing to pitch in on something for whoever fixes this and the related 0003594 ID tickets.

Kunda1

2018-09-15 12:48

administrator   ~0011747

@rawrpenguinzombies please mention that on the forum thread so it's more visible.

yorik

2022-03-03 13:55

administrator   ~0016628

This ticket has been migrated to GitHub as issue 5793.

Issue History

Date Modified Username Field Change
2018-05-25 22:11 easyw-fc New Issue
2018-05-25 22:11 easyw-fc Tag Attached: DXF
2018-05-25 22:11 easyw-fc Tag Attached: export
2018-05-25 22:11 easyw-fc File Added: internal.dxf
2018-05-25 22:11 easyw-fc File Added: legacy.dxf
2018-05-25 22:58 easyw-fc Note Added: 0011278
2018-05-30 23:22 Kunda1 Note Added: 0011311
2018-09-14 19:54 Kunda1 Relationship added related to 0003594
2018-09-14 19:56 Kunda1 Note Added: 0011744
2018-09-14 20:05 rawrpenguinzombies Note Added: 0011745
2018-09-15 12:48 Kunda1 Note Added: 0011747
2018-09-15 12:49 Kunda1 Status new => confirmed
2020-12-06 17:43 Kunda1 Tag Attached: units
2021-02-06 06:49 abdullah Target Version => 0.20