FS#1485dxflib: Lines are on the wrong layer when processing dxf files with external tools
- Type
- Bug
- Status
- Closed
- Resolution
- Fixed
- Category
- dxflib
- Severity
- Low
- Priority
- Low
- Reported version
- 3.15.3
- Operating system
- Windows (All)
- Reported
- 2016-09-23 by stebne
- Closed
- 2016-09-23 by andrew
I create a drawing using QCAD which is stored using dxflib. For some reasons dxflib must be used. This drawing contains arcs and lines on a separate layer. If the dxf file is processed by an other tool only the arcs are referenced to the specific layer. The lines are referenced to the standard layer 0. It doesn't matter if I'm using the community edition or the pro edition.
After a some investigations I found that the created dxf file is not correct. I manually corrected the dxf file and it works as it should.
For details please refer to the appended files. Take a look to the ENTITY section and the LINE entities, e.g. line 2370. It is just to swap two entities.
Thanks for support.
Comments (1)
Thanks. You can download a fix from:
https://github.com/qcad/qcad/blob/a738bc5f806ab073e36b338aab09a5b91dd9bbb6/src/3rdparty/dxflib/src/dl_dxf.cpp
Relevant diff:
https://github.com/qcad/qcad/commit/a738bc5f806ab073e36b338aab09a5b91dd9bbb6