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

Exporting attribute values to AutoCAD block attributes

  • Prepare the seed file
  • Add reserved CAD fields to the attribute table
  • Run the Export To CAD tool

This workflow demonstrates how to export feature attributes to AutoCAD block attributes using reserved CAD fields CADType and RefName, and a seed file.

This workflow requires the following:

  • An AutoCAD seed file containing a block definition with attributes that will store the attribute values
  • An ArcGIS point feature class with the fields CADType and RefName added to the attribute table
  • Field names in the input feature class attribute table that match the block attribute tag names defined with the AutoCAD block definition

The resulting DWG file will contain a block reference for each point feature that is in the input feature attribute table. Each block reference will contain the feature attributes for the field names that correspond to a matching block attribute tag name.

Prepare the seed file

The AutoCAD seed file must contain a block definition for each block reference you specify with the RefName field. You can reference the same block definition for all features or direct features to specific blocks defined in the seed file. If you specify a block definition that does not exist, the Export to CAD tool will insert a generic block reference defined as a circle one unit in diameter, with no attributes.

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 "INSERT".

  1. Right-click the feature layer in the table of contents, and click Open Attribute Table.
  2. Click the General Tabular Operations button Table Options on the attribute table menu bar, and click Add Field to open the dialog box.
  3. Type the field name CADType in the Name text box.
  4. Click the Type drop-down arrow, and click Text to assign the data type.
  5. Accept the default field length of 50.
  6. Click OK to close the dialog box and create the field.
  7. Right-click the CADType field name in the attribute table, and click Field Calculator Calculator on the shortcut menu.
  8. Type "INSERT" (including the double quotes) in the Expression text box.
  9. Click OK to run the tool.

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

Add the RefName field

The RefName field specifies the name of the AutoCAD block definition that will be inserted in the CAD file for each feature entity. You will use the Field Calculator to specify the keyword "MyBlock". Substitute a block name that exists in your AutoCAD seed file.

  1. Right-click the feature layer in the table of contents, and click Open Attribute Table.
  2. Click the General Tabular Operations button Table Options on the attribute table menu bar, and click Add Field to open the dialog box.
  3. Type the field name RefName in the Name text box.
  4. Click the Type drop-down arrow, and click Text to assign the data type.
  5. Accept the default field length of 50.
  6. Click OK to close the dialog box and create the field.
  7. Right-click the RefName field name in the attribute table, and click Field Calculator Calculator on the shortcut menu.
  8. Clear any existing values in the Expression text box.
  9. Type the name of the block definition that is saved in your AutoCAD seed file in the Expression text box. For example: "MyBlock" (including the double quotes).
  10. Click OK to run the tool.

    The field RefName now displays the value MyBlock for all records.

Run the Export To CAD tool

  1. Using the Search window Search, find and open the Export To CAD tool.
  2. Drag the feature layer containing the new fields from the table of contents to the Input Features text box.
  3. Click the Output Type drop-down arrow, and choose an AutoCAD DWG format.
  4. Click the Output File browse button Browse, navigate to a folder, type a name for the new CAD file, and click Save.
    • Or, accept the default path and filename.
  5. Drag the AutoCAD seed file containing the block definition for MyBlock from the Catalog window to the Seed File text box.
  6. Click OK to run the tool.

Open the attribute table for the CAD point feature layer in the newly created CAD dataset to verify your results.

Related Topics

  • Reserved CAD fields for AutoCAD DWG/DXF formats
  • Preparing a DWG seed file
  • Overriding default CAD output
Feedback on this topic?

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
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal