ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Add CAD Fields

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

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).

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_PROPERTIES —Adds the list of CAD-specific Entity property fields to the input table
  • NO_ENTITY_PROPERTIES —Does 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_PROPERTIES —Adds the list of CAD-specific Layer property fields to the input table
  • NO_LAYER_PROPERTIES —Does 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_PROPERTIES —Adds the list of CAD-specific Text property fields to the input table
  • NO_TEXT_PROPERTIES —Does 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_PROPERTIES —Adds the list of CAD-specific Document property fields to the input table
  • NO_DOCUMENT_PROPERTIES —Does 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_PROPERTIES —Adds the list of CAD-specific XData property fields to the input table
  • NO_XDATA_PROPERTIES —Does 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

  • Current Workspace
  • Extent
  • Scratch Workspace

Licensing information

  • ArcGIS for Desktop Basic: Yes
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the To CAD toolset
  • Reserved CAD fields for MicroStation V8 DGN formats
  • Reserved CAD fields for AutoCAD DWG/DXF formats

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal