ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS 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
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Exporting features to specific CAD layers

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

This workflow demonstrates how to export features to a specific CAD layer and layer color using reserved CAD fields Layer and LyrColor.

Add reserved CAD fields to the attribute table

Adding the Layer field

The Layer field specifies the CAD layer that is created for each feature entity. Use Field Calculator to specify the target layer name. You can specify the same layer for all features or direct features to specific layers.

  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 Layer in the Name text box.
  4. Click the Type 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 Layer field name in the attribute table and click Field Calculator Calculator on the shortcut menu.
  8. Type "MyLayer" (including the double quotes) in the Expression text box.
  9. Click OK to run the tool.

    The Layer field now displays the value MyLayer for all records.

Adding the LyrColor field

The LyrColor field specifies the color for the layer. Use Field Calculator to specify the color number.

  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 LyrColor in the Name text box.
  4. Click the Type arrow and click Short Integer to assign the data type.
  5. Click OK to close the dialog box and create the field.
  6. Right-click the LyrColor field name in the attribute table and click Field Calculator Calculator on the shortcut menu.
    • Clear any existing values in the Expression text box.
  7. Type the number 1 in the Expression text box.
  8. Click OK to run the tool.

    The LyrColor field now displays the value 1 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 that contains the reserved CAD fields from the table of contents to the Input Features text box.
  3. Click the Output Type arrow and choose a CAD format.
  4. Click the Output File browse button Browse, navigate to a folder, type a name, then click Save.
    • Or accept the default path and file name.
  5. Click OK to run the tool and generate the CAD file.

Open the Layer Properties dialog box and click the Drawing Layers tab to verify your results with the CAD feature layer in the newly created CAD dataset.

Note:

AutoCAD uses a fixed, numbered, 256-color palette starting at 1 (red). A MicroStation seed file could have a unique custom color table. For example, color 1 may be red in one MicroStation file, but it may be blue in another.

Related topics

  • Reserved CAD fields for AutoCAD DWG/DXF formats
  • Reserved CAD fields for MicroStation V8 DGN formats

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal