Error Message DXF Import

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
UR_
Posts: 1189
Joined: Tue Jan 03, 2017 8:42 pm

Error Message DXF Import

Postby UR_ » Wed Mar 18, 2020 6:09 pm

An error occurs importing a minimalistic DXF file (version R12) using legacy python importer

error message:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Program Files\FreeCAD\Mod\Draft\importDXF.py", line 2753, in open
processdxf(doc, filename)
File "C:\Program Files\FreeCAD\Mod\Draft\importDXF.py", line 2184, in processdxf
for table in drawing.tables.get_type("table"):
<class 'AttributeError'>: 'Object' object has no attribute 'tables'



import preferences:

Screenshot 003.png
Screenshot 003.png (100.66 KiB) Viewed 224 times

DXF file:

Code: Select all

0
SECTION
2
ENTITIES
0
CIRCLE
8
Layer_is_a_required_tag
10
0.0
20
0.0
40
1.5
0
ENDSEC
0
EOF
Minimal_DXF_AC1009.dxf
(108 Bytes) Downloaded 5 times

file is from https://bitbucket.org/mozman/ezdxf/down ... AC1009.dxf


As workaround there is a PR https://github.com/FreeCAD/FreeCAD/pull/3203


Can a dxf expert please have a look.