I'm trying to export feature classes by using Export To Cad Arcmap tool. For point feature classes, I created seed file that I export point feature classes with attributes. I managed to export gis to cad with attributes for points. But If I do so for line feature class, for output I get distrupted, incorrect objects in cad file.
I tried Arcgis for Autocad plug-in. But I only managed to display feature classes attributes. I couldn't export objects to dxf-dwg file with attributes by using plug-in.
I've reached dxf file which its GIS data was exported to cad file.
But I couldn't manage to solve how they exported this GIS data to Cad file.
Because as you can see in the picture below, blocks must have been created for every unique object. But I don't think that blocks are created manually for every object for GIS data. Is it possible to export GIS data in this way or make it possible automated?
I couldn't figure out how I should export line feature classes with attributes to CAD file. Do you have any suggestion?
Let's see if this helps you.
First you have to create a template file. Assume you have block definitions with attributes in some sort of DWG file.
If you use the Export to CAD tool, you can use this blank DWG file as a "Seed File".
If the block definitions match the feature class names...and the block attributes tags match the field names, then the block attributes will be populated with the field values for each point feature.
To be clear we are talking about two different meanings of the word attributes in this thread. One is the AutoCAD attributes only found on a block insert entity when there is a ATTRIBUTE entity on the block. With ArcGIS desktop' EXPORT TO CAD geoprocessing tool (ArcMap/ArcCatalog/ArcGIS Pro) you can generate AutoCAD blocks with attributes by including a seed file with a block definition that includes the block and any block attributes. If the tagname of the block definition matches the ArcGIS feature layer field name then when the Point feature class is added to the AutoCAD drawing it will use the block specified in the feature class field name REFNAME and then populate the blocks. REFNAME needs to be the field name and whatever value that point feature class feature has in that field will drive the blockname. You also have to have a feature layer field in that data called CADType and the value of those records need to be INSERT, which denotes that you will overrided the default POINT entity for exported feature class content and instead create block INSERT entity.
Now all of this is very useful, but even more important is that if you are talking about ATTRIBUTES as the generic term for GIS attributes on points, lines, multipatch, annotation and polygons all of those attributes are always created on all the data you export to AutoCAD automatically by default. You don't have to do anything. You don't need shapefiles or anything else other than the free plug-in ArcGIS for AutoCAD to read your attributed feature classes that are exported into the DWG. ArcGIS for AutoCAD exposes all of that information that is already there in the DWG file exported from ArcGIS desktop, and has been there for over a decade. ArcGIS desktop also reads thisattributed feature class data within the DWG created from ArcGIS desktop or ArcGIS for AutoCAD. For example as a test you can just look at the DWG file you created with EXPORT TO CAD back in ArcMap or ArcGIS Pro and see that all the rich content is already in the AutoCAD DWG file. And of course you see it with ArcGIS for AutoCAD loaded in AutoCAD.