DXF import messes up some files (some objects scaled differently)
Bug #1594607 reported by
PCB Wiz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Low
|
Unassigned |
Bug Description
Importing 3 different CAD Saves of the _same_ original DXF, gives 3 differing outcomes in DXF import.
DXF loaded and saved by Double CAD imports ok, with Arcs, Circles and Text.
DXF flat export from PADS loads, but drops the Circle and Arcs
DXF full export from PADS, loads, but more mangled - looks to lose origin info, as well as Circles and Arcs.
DXF load/save from A9CAD seems to scale wrong - DXF import may need a scale choice added, as I think not all DXF files have explicit units included ?
millimeters is a a global standard, but inch and mils are also common in PCB design areas.
LibreCAD I tested, but it has a bug in release 2.1.0 that prevents full DXF testing.
Changed in kicad: | |
status: | Incomplete → New |
tags: | added: dxf |
summary: |
- DXF import fails on some DXF files(footprint Editor) + DXF import messes up some files (some objects scaled differently) |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Another test case, this from QCAD,
Here, the older format DXF (POLYLINE) fails (drops ARC & Circle), but the newer choice (LWPOLYLINE) is ok.
This may be easier to debug, as this is the same CAD export, of slightly differing file standards.
This fails :
8
2DLINES_1
0
POLYLINE
8
2DLINES_1
66
1
70
1
0
VERTEX
8
2DLINES_1
10
75.95
20
3.429
40
0.5
41
0.5
42
1.0
0
VERTEX
8
2DLINES_1
10
76.45
20
3.429
40
0.5
41
0.5
42
1.0
0
SEQEND
This is OK
0
LWPOLYLINE
5
48
330
8C
100
AcDbEntity
8
2DLINES_1
100
AcDbPolyline
90
2
70
1
43
0.5
10
75.95
20
3.429
42
1.0
10
76.45
20
3.429
42
1.0
0
LWPOLYLINE
Looking at that more closely, if this uses the LibreCAD DXF reader, it is around that multiple vertex handling that LibreCAD has issues.