Add CAD Fields (Conversion)

Summary

Adds several reserved CAD fields in one step. Fields created by this tool are used by the Export To CAD tool to generate CAD entities with specific properties. After executing this tool, you must calculate or type the appropriate field values.

Usage

  • All input feature classes and/or feature layers are valid inputs to this tool.

  • You can add fields to a table other than a feature class and join the tables using a field that exists in both tables. Using a lookup table can be an efficient way to standardize and reuse common CAD property values.

  • If the input is a table view or a feature layer with a joined table, the fields are only added to the base table (not to the joined table).

Parameters

LabelExplanationData Type
Input Table

Input table, feature class, or shapefile that will have the CAD-specific fields added to it

Table View
Entity Properties

Adds the list of CAD-specific Entity property fields to the input table

  • Checked—Adds the list of CAD-specific Entity property fields to the input table. This is the default.
  • Unchecked—Does not add the list of CAD-specific Entity property fields to the input table
Boolean
Layer Properties
(Optional)

Adds the list of CAD-specific Layer property fields to the input table

  • Checked—Adds the list of CAD-specific Layer property fields to the input table. This is the default.
  • Unchecked—Does not add the list of CAD-specific Layer property fields to the input table.
Boolean
Text Properties
(Optional)

Adds the list of CAD-specific Text property fields to the input table

  • Checked—Adds the list of CAD-specific Text property fields to the input table. This is the default.
  • Unchecked—Does not add the list of CAD-specific Text property fields to the input table.
Boolean
Document Properties
(Optional)

Adds the list of CAD-specific Document property fields to the input table

  • Checked—Adds the list of CAD-specific Document property fields to the input table. This is the default.
  • Unchecked—Does not add the list of CAD-specific Document property fields to the input table.
Boolean
Add CAD XData Property Fields
(Optional)

Adds the list of CAD-specific XData property fields to the input table

  • Checked—Adds the list of CAD-specific XData property fields to the input table. This is the default.
  • Unchecked—Does not add the list of CAD-specific XData property fields to the input table.
Boolean

Derived Output

LabelExplanationData Type
Updated Input Table

The updated input table, feature class, or shapefile.

Table View

arcpy.conversion.AddCADFields(input_table, Entities, {LayerProps}, {TextProps}, {DocProps}, {XDataProps})
NameExplanationData Type
input_table

Input table, feature class, or shapefile that will have the CAD-specific fields added to it

Table View
Entities

Adds the list of CAD-specific Entity property fields to the input table

  • ADD_ENTITY_PROPERTIESAdds the list of CAD-specific Entity property fields to the input table
  • NO_ENTITY_PROPERTIESDoes not add the list of CAD-specific Entity property fields to the input table
Boolean
LayerProps
(Optional)

Adds the list of CAD-specific Layer property fields to the input table

  • ADD_LAYER_PROPERTIESAdds the list of CAD-specific Layer property fields to the input table
  • NO_LAYER_PROPERTIESDoes not add the list of CAD-specific Layer property fields to the input table
Boolean
TextProps
(Optional)

Adds the list of CAD-specific Text property fields to the input table

  • ADD_TEXT_PROPERTIESAdds the list of CAD-specific Text property fields to the input table
  • NO_TEXT_PROPERTIESDoes not add the list of CAD-specific Text property fields to the input table
Boolean
DocProps
(Optional)

Adds the list of CAD-specific Document property fields to the input table

  • ADD_DOCUMENT_PROPERTIESAdds the list of CAD-specific Document property fields to the input table
  • NO_DOCUMENT_PROPERTIESDoes not add the list of CAD-specific Document property fields to the input table
Boolean
XDataProps
(Optional)

Adds the list of CAD-specific XData property fields to the input table

  • ADD_XDATA_PROPERTIESAdds the list of CAD-specific XData property fields to the input table
  • NO_XDATA_PROPERTIESDoes not add the list of CAD-specific XData property fields to the input table
Boolean

Derived Output

NameExplanationData Type
out_table

The updated input table, feature class, or shapefile.

Table View

Code sample

AddCADFields example (stand-alone script)

Add reserved CAD fields to attribute table for use with ExportToCAD tool

# Import system modules
import arcpy

# Set workspace
arcpy.env.workspace = "C:/data"

# Set local variables
input_table = "C:/data/EditorTutorial.gdb/StudyArea/Buildings"

# Process: Add CAD Fields
arcpy.AddCADFields_conversion(input_table, "ADD_ENTITY_PROPERTIES", 
                              "ADD_LAYER_PROPERTIES", "NO_TEXT_PROPERTIES",
                              "NO_DOCUMENT_PROPERTIES", "NO_XDATA_PROPERTIES")

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics