carlopav wrote: ↑Thu Apr 02, 2020 6:37 am
...
File "C:\Users\Carlo\Desktop\fcnew\Mod\Draft\importDXF.py", line 2814, in insert
Import.readDXF(filename)
In my system this line is 2817, so it means we have a different version?
This line is after a test for the "legacy importer". It means you are using the C++ importer. Check the Draft preferences, and choose "legacy" for both import and export.
In general, the "legacy" Python DXF importer code is pretty long and convoluted. It could use a serious re-write, and breaking it into smaller modules. Such rewrite would take several weeks and needs to be done very carefully to make sure nothing breaks.
What we need is a well formed DXF test file that we can convert easily from FreeCAD to DXF and back without problems; then we can use it to test the progress as we update the DXF importer.