[GIS] Preserving text when converting from .dxf to .shp

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 with text datafield gives almost the same as Autodesk Design Review:

enter image description here

enter image description here

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 the Data 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 the Layer field, ignoring again the error messages. Load both shapefiles into QGIS manually, label the point file with the Text field, and set the point symbol to zero size.