Is it possible to export labels based on Shapefile attributes into a DXF file?

I use Quantum gis in Version 1.7.4.
I've been reading a CSV file and view it as a Shape Layer.
With the help of attributes from the File I will label the points.
Now I want a DXF export with the labels.
However, only the Points in the DXF file Export.

I do not have ArcGIS.

I am using AutoCAD LT 2011 for viewing DXF files. In AutoCAD I have to go through the "Insert / Link & extraction" under only the possibility to find data from Excel.

Why would you like to export as DXF? Which program do you wnat to use to read the exported files? Perhaps there are better ways. In general dxf is a rather poorly supported fileformat.
–
johanvdwMay 4 '12 at 19:40

I think there are too many limitations for a solution without getting help from someone who has more tools. LT does not allow for programming or much manipulation. You need at least autocad or autocad map would be better. you could then create points with attributes and either make them into blocks or simply label the points. You can get closer by doing an export from qgis and include the xy coordinates in the csv, or shape file. if you had map you could just import the shp file and label it.
–
Brad NesomSep 21 '12 at 3:45

5 Answers
5

If you want the labels in CAD, here's a workaround (you're not being very specific as to what you're trying to accomplish). In ESRI, create a point file for the centroid of each label. Populate the label field in the attribute table.

Next, in a "map capable" version of AutoCAD, tpye "mapconnect" in the command line. This will bring up the screen shown below (I'm assuming you know how to manage coordinate systems in CAD). First, select "Add SHP connection". Next, click the SHP ellipsoid (shown with #2) and navigate to the location of your point shapefile. Lastly (step #3) hit the connect function, and inside that menu, hit "add to map" Now all you need to do is make your points invisible and turn on the labels (which will require you to switch to a Geospatial interface in CAD -- shown in next printscreen).

There are Geospatial functions available in CAD. Under the arrow highlighted below, you can see that there are Geospatial functionalities inherent to CAD (map capable versions that is). The icon looks very much like a gear (Beside "Dano1" in my printscreen). This menu can be found in the bottom right portion of your screen. If you get this far and are not sure how to proceed, the only this I can suggest is that you post another question related to labeling spatial data in CAD.

If you use ArcGIS then in my opinion the most stable solution is to convert the annotations to polygons then export to DXF. I use the same approach for exporting annotations to KMZ which unlike exporting annotations directly yields very high resolution labels in the resulting KMZ.

Unfortunately, this requires you to convert annotations to polygons for which there isn't an OOTB tool. I built my own addin for this. I can post the code if you'd like.