Open oddworldng opened 4 years ago
This is probably not a bug. There are simply two ways of opening/importing DXF in QGIS:
The latter imports the DXF/DWG into a geopackage, and expands block geometries, styles, label settings, etc. and creates symbology rules in QGIS.
The code you list above is doing the first option.
I am not sure how the second method can be replicated using Python code. You would have to ask @jef-n for support. You can open a support request with his company Norbit (https://www.norbit.de/)
Not sure if the second method has Python API exposed. @jef-n would know more about it.
Would be great to have access to this functionality from PyQGIS
I think this should be changed to a feature request. I just checked the Python API. There is some DXF stuff in the API, but all is export related.
Hi, any news on this issue?
subscribing
Describe the bug I'm developing a simple plugin to load multiple DXF files to the TOC (PyQGIS), the problem is that it isn't the same result if I load this file from QGIS menu.
How to Reproduce
In QGIS menu:
In PyQGIS:
QGIS and OS versions
I'm using Windows 10 and QGIS 3.10 'A Coruña'.
Additional context
For example, QGIS attribute table is not the same in both cases.
This is a dxf example file: E1822P_Modelo_Alumbrado_propuesto.dxf