Be The First To Get Support Updates
Want to know about the latest technical content and software updates?

How To: Export to AutoCAD DWG or DXF format and maintain attributes


There are two methods to convert attributes from a geodatabase feature class attribute table to CAD using Export to CAD. This article details both methods.

The steps apply only to a file or personal geodatabase feature class. They do not work if the input data are in shapefile format.


Tips and tricks to assist with this conversion process, and better control data output, are provided in the following technical articles:

The better known method to convert feature attributes to CAD is to label the geodatabase feature class with appropriate labels in ArcMap, and convert the labels to annotation in the geodatabase. This can get cluttered if there are several attributes to convert. The method outlined below provides instructions on managing multiple attribute conversions.

If geodatabase annotation is to be exported to CAD, only create labels with the Standard Label Engine, not Maplex. Some annotation types, such as splines, that can be created with Maplex, are not supported in CAD programs so annotation created with Maplex must not be used for this purpose.
Annotation stored in the map cannot be exported to CAD.

A more complex method for this conversion process is to create BLOCK entities in the output AutoCAD file and attach editable TAGs to the blocks to store attributes that can be accessed in AutoCAD. This process begins with creating a seed file in AutoCAD that contains the block name and definition, with associated TAG names to store attributes from the geodatabase feature class.

  1. Create a seed file in AutoCAD that contains the BLOCK definition, together with the TAG names to be populated with attribute values from the geodatabase feature class. Here are the requirements:
    • The TAG names must be identical to the names of the attributes in the geodatabase feature class, and are case-sensitive.
    • Only text fields from the geodatabase attribute table can be converted to TAGs in the output AutoCAD file.
To convert values from numeric fields in the attribute table, add new Text fields to the feature class attribute table,  and calculate these numeric values into the new fields.
  1. Add the following fields with the indicated definitions to the attribute table of the data to be converted:
    • CadType, Text field, length 15, populated with the word 'Insert'
    • RefName, Text field, length sufficient to store the block name from the AutoCAD file. This field is populated with the name of the BLOCK the feature is converted to.

The attribute fields in the geodatabase feature class must be populated with some values, using the field calculator in ArcMap. Every cell in the field must be populated. If the field is left blank, the TAG is not created for the BLOCK in the output AutoCAD file. If no value exists for the TAG, enter an X, or a 1, UNK, or any other alpha-numeric value on the keyboard. This step is important. For example, there are 2000 line features converted to AutoCAD format, and the Pipe_Diameter field must be attached to the lines in the output CAD file. If in the 1239th record of the attribute table, the cell with the diameter value is blank, none of the following records have the Pipe_Diameter TAG populated.

Running Export to CAD on the feature class, each feature becomes a BLOCK in the DWG, and the values for each TAG are editable in AutoCAD using the ATTEDIT command.

Last Published: 2/17/2021

Article ID: 000012835