View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003494 | FreeCAD | Bug | public | 2018-05-25 22:11 | 2021-02-06 06:49 |
Reporter | easyw-fc | Assigned To | |||
Priority | high | Severity | feature | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Product Version | 0.17 | ||||
Target Version | 0.20 | ||||
Summary | 0003494: DXF export (Autodesk DXF 2D type) doesn't add any UNITS field inside the dxf file. | ||||
Description | FreeCAD 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 | ||||
Tags | DXF, export, units | ||||
FreeCAD Information | |||||
related to | 0003594 | new | DXF Export Units Toggle |
|
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 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 |
|
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, |
|
ref: https://forum.freecadweb.org/viewtopic.php?f=8&t=28925#p235782 |
|
Related: 0003594 |
|
I am willing to pitch in on something for whoever fixes this and the related 0003594 ID tickets. |
|
@rawrpenguinzombies please mention that on the forum thread so it's more visible. |
|
This ticket has been migrated to GitHub as issue 5793. |
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 |