Comment 10 for bug 1123907

Revision history for this message
Alvin Penner (apenner) wrote :

a modified version of dxf_input.py has been posted to the Inkscape trunk code in rev 12344. The following changes were made:

- if an AutoCAD layer with name 0 does not exist, then it will be created. This fixes the original crash reported in comment 1.
- if an object makes a reference to a layer whose name is null, then that reference will be changed to be layer 0. This fixes the crash reported in comment 8 above.

Neither of these changes will allow the loading of Release 12 documents, but will hopefully prevent crashes caused by these documents. Two other changes were made:

- modified the tag <svg:desc> to include a complete description of the scaling used to load the document.
- put in a detector for the entity called POLYLINE, which is not supported here. This will issue a warning to the user that the document is probably incomplete and probably Release 12, and needs to be converted to Release 13 format.

To use this new version, download the files dxf_input.py, dxf_input.inx, and inkex.py from the site:
http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/files/head:/share/extensions/