Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Conversion toolbox > To CAD toolset > Tools

Create CAD XData (Conversion) (ArcInfo only)

Release 9.2
Last modified April 2, 2008
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Changed tool description to: Creates a field called 'XDList' in the attribute table.


Usage tips

Command line syntax
An overview of the Command Line window
CreateCADXData_conversion <in_table> <fields;fields...> <RegApp> <ADE | Traditional XData>

Parameter Explanation Data Type
<in_table>

This table contains the fields used to generate an XML string of values recognized by the Export to CAD tool. This enables XData to be created on output objects, based on values of fields from the Input Table.

Table View
<fields;fields...>

The selected field values for the encoded XData.

The Add Field button, which is used only in ModelBuilder, allows you to add expected field(s) so that you can complete the dialog and continue to build your model.

Field
<RegApp>

The AutoCAD extended entity data registered application name. Required by only AutoCAD to identify the XData. This application name is an identifier of the newly created XData.

String
<ADE | Traditional XData>

Format of the AutoCAD XData.

  • ADE — The XData string that contains a tag, type, and value in a single string.
  • Traditional — Single-typed value without tag names.

String
Data types for geoprocessing tool parameters


Command line example

CreateCADXData_conversion WaterPipes WaterPipe_xdata "diameter, length, material, reynolds_no, installed"  "KYPIPE" NO_ADE

Scripting syntax
About getting started with writing geoprocessing scripts
CreateCADXData_conversion (in_table, fields, RegApp, Output_Type)

Parameter Explanation Data Type
in_table (Required)

This table contains the fields used to generate an XML string of values recognized by the Export to CAD tool. This enables XData to be created on output objects, based on values of fields from the Input Table.

Table View
fields (Required)

The selected field values for the encoded XData.

The Add Field button, which is used only in ModelBuilder, allows you to add expected field(s) so that you can complete the dialog and continue to build your model.

Field
RegApp (Required)

The AutoCAD extended entity data registered application name. Required by only AutoCAD to identify the XData. This application name is an identifier of the newly created XData.

String
Output_Type (Required)

Format of the AutoCAD XData.

  • ADE — The XData string that contains a tag, type, and value in a single string.
  • Traditional — Single-typed value without tag names.

String

Data types for geoprocessing tool parameters


Script example

# To create XData from a feature class and export it to a CAD file with the Extended Entity Data.
# Create the Geoprocessor object
import arcgisscripting
gp = arcgisscripting.create()

# Local variables...
Roads2 = "C:/Test_data/Personal GDB/OrangeCounty.mdb/Roads"
OrangeCounty_mdb = "C:/Test_data/Personal GDB/OrangeCounty.mdb"
Roads = "C:/Test_data/Personal GDB/OrangeCounty.mdb/Roads"
roads_dwg = "C:/Test_data/CAD/roads.dwg"

# Process: Select Data...
gp.SelectData_management(OrangeCounty_mdb, "Roads", )

# Process: Create CAD XData...
gp.CreateCADXData_conversion(Roads, "'MINOR2';'MAJOR3';'MINOR3';'MAJOR4';'MINOR4';'DESCRIPT';'Shape_Length'", "ArcGIS", "ADE", )

# Process: Export to CAD...
gp.ExportCAD_conversion("'C:/Test_data/Personal GDB/OrangeCounty.mdb/Roads'", "DWG-R2000", roads_dwg, "Use_Filenames_in_Tables", "Overwrite_Existing_Files", "")

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.