Add CAD Fields (Conversion)

Summary

Adds reserved CAD fields recognized by the Export To CAD tool. These fields are used to specify the CAD properties of the exported featuresAfter executing this tool, you must calculate or enter the appropriate field values.

Usage

Syntax

AddCADFields_conversion (input_table, Entities, {LayerProps}, {TextProps}, {DocProps}, {XDataProps})
ParameterExplanationData 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

Code Sample

# Name: AddCADFields.py
# Description: Add reserved CAD fields to attribute table for use with Export To CAD tool
# Author: ESRI
# 10/28/2009 

# Import system modules
import arcpy
from arcpy import env

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

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

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

except:
# If an error occurs while running a tool print the message
print arcpy.GetMessages()

Environments

Related Topics

Licensing Information

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes

11/14/2011