Exporting attribute fields to CAD as text

This workflow demonstrates how to export feature attributes to a CAD file as text elements using a point feature class and reserved CAD fields CADType and TxtValue. A common application for this workflow is to generate CAD text at the centroid of polygon features such as states, counties, or parcels.

The point feature is derived from an existing linear feature. It is used to provide a coordinate location for each text element in the CAD file. The resulting output CAD file will contain a text entity positioned at each point feature location.

Create the point feature class

Use the Feature To Point tool to create a new point feature class from an existing polygon feature layer.

Steps:

Using the Search window , find and open the Feature To Point tool.

Drag the polygon feature class from the table of contents or Catalog window into the Input Features text box.

Or, use the browse button to navigate to the source data, and click Add.

Click the Output Feature Class browse button , navigate to a geodatabase, type a name for the new feature class, and click Save.

Or, accept the default path and feature class name.

Add reserved CAD fields to the attribute table

Adding the CADType field

The CADType field specifies the type of CAD entity to be generated. You will use the Field Calculator to specify the keyword "TEXT".

Steps:

Right-click the feature layer in the table of contents, and click Open Attribute Table.

Click the General Tabular Operations button on the attribute table menu bar, and click Add Field to open the dialog box.

Type the field name CADType in the Name text box.

Click the Type drop-down arrow, and click Text to assign the data type.

Accept the default field length of 50.

Click OK to close the dialog box and create the field.

Right-click the CADType field name in the attribute table, and click Field Calculator on the shortcut menu .

Type "TEXT", including the double quotes, in the Expression text box.

Click OK to run the tool.

The CADType field now displays the value TEXT for all records.

Adding the field TxtValue

The TxtValue field specifies the value to be generated for each text entity. You will use the Field Calculator to calculate a value from an existing attribute.

Steps:

Right-click the feature layer in the table of contents, and click Open Attribute Table.

Click the General Tabular Operations button on the attribute table menu bar, and click Add Field to open the dialog box.

Type the field name TxtValue in the Name text box.

Click the Type drop-down arrow, and click Text to assign the data type.

Accept the default field length of 50.

Click OK to close the dialog box and create the field.

Right-click the TxtValue field name in the attribute table, and click Field Calculator on the shortcut menu.

Clear any existing values in the Expression text box.

Double-click a field name in the Fields list that contains the values you want to export as text. This adds the field name to the Expression text box.

For example [propertyaddress].

Click OK to run the tool.

The TxtValue field now displays the attribute values you will export as CAD text for each feature record.