DXF Importer (C++) no longer imports layers other than the "0" layer #13597
Labels
Bug
This issue or PR is related to a bug
File format: DXF
Regression
Bugs describing a regression or PRs fixing one
Is there an existing issue for this?
Problem description
The DXF importer in the development branch seems to no longer create layers correctly. I've seen it working at some point, but now only layer 0 seems to be imported correctly, and the rest are ignored –either their contents or their names. On the other hand, the stable branch has some sort of layer support, and the results are also shown here for comparison.
The starting point is a sample file that contains 3 layers, with a simple object (rectangle or circle) in each layer. The drawing looks like in the following screenshot, as loaded by QCAD:
DXF import with FreeCAD 0.22
As single elements
The following settings were used:
The result:
dxf_layers_single_dev.zip
As layer blocks
The following settings were used:
The result:
dxf_layers_layerblocks_dev.zip
DXF import with FreeCAD 0.21
The following comparison was made using FreeCAD's stable version:
As single elements
The following settings were used:
dxf_layers_single_stable.zip
As layer blocks
The following settings were used:
dxf_layers_layerblocks_stable.zip
Conclusion
As mentioned at the top, I have seen layers being imported in the development branch at some point (a couple of weeks in the past?). This would seem like a regression, but unfortunately, I don't have the older files to show it.
A proper fix would bring back support for layers, but a quick fix improvement could already be to regain the functionality of 0.21 whereby when imported as blocks, the blocks were named like the layers.
Full version info
Subproject(s) affected?
File formats
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: