I have tried using dxf2shp converter in QGIS but the text in dxf file is being lost during the conversion process, despite selecting export text labels.
How do I convert the .dxf to .shp file without losing data?
dxfqgisshapefile
I have tried using dxf2shp converter in QGIS but the text in dxf file is being lost during the conversion process, despite selecting export text labels.
How do I convert the .dxf to .shp file without losing data?
Best Answer
Opening the dxf with
Add Vector layer
and labelling withtext
datafield gives almost the same as Autodesk Design Review:The DXF file contains points and polygons in the same layer. This is not allowed in shapefiles. That is why you can not save it as a shapefile.
Exporting as kml will work, as this format supports different geometry types. You have to set
NameField=Text
in theData Source
Field to preserve the text into the Name field for labelling.EDIT
You can export the data as lines shapefile, and ignore the error messages. In a second run, you can export the labelling points by adding
SHPT=POINTS
in theLayer
field, ignoring again the error messages. Load both shapefiles into QGIS manually, label the point file with theText
field, and set the point symbol to zero size.