操作方法

操作方法:使用“导出为 CAD”工具将地理数据库要素类导出为 CAD(包括注记)

Last Published: February 10, 2024

摘要

Instructions provided describe one method for converting geodatabase feature classes to CAD file formats (DWG or DXF) that include layer names and text entities.

过程

The process outlined below is performed in ArcMap.

  1. Add the geodatabase feature classes to be converted to a new, empty ArcMap session. Label each feature class, as needed, with the attribute(s) to be converted to text entities in the output CAD file.
  2. Convert the labels for each feature class to annotation in the geodatabase.
Warning:
Annotation stored in the map cannot be converted to CAD.
  1. The default AutoCAD screen color is black, and the default output text color is also black. Text converted with the default color does not show up in AutoCAD. To control the output text color for annotation in the AutoCAD file, add the field named 'COLOR', defined as 'Short Integer', to each annotation feature class and calculate a CAD color number into the field. Some standard AutoCAD color numbers are:
      0  White/Black - depends on the AutoCAD canvas color when the file is opened
      1  Red
      2  Yellow
      3  Green
      4  Cyan
      5  Blue
      6  Magenta
      7  White/Black - the display color for text in AutoCAD, controlled by the canvas color
  2. In Export to CAD, the default layer name is the name of the feature class. To create data on different layers in the output CAD file, use the following method:
    • Add a field named LAYER to the feature class attribute table, with the data type defined as Text, a length of 25, and populate the layer field with the layer names to be assigned to the features during export.
Note:
CAD layers can contain different kinds of features, so the same layer name can be used for features of all feature types being converted. If the layer field is left blank for some features, those features are saved on Layer 0.
Note:
At version 9.3.1 and previous versions, if a field exists in the attribute table that already contains suitable layer names, use the 'Set CAD Alias' Tool and set the Alias for that field to 'Layer'.
Note:
If the data was originally imported from an AutoCAD DWG or DXF file, the field named 'Layer' already exists in the attribute tables. Those Layer names are reassigned to the exported data.
  1. After performing the above steps as needed, open the Export to CAD tool, selecting the point, polyline, polygon and annotation feature classes as needed for input in the tool.
  2. Select the output location and enter an appropriate name for the output CAD file. Click OK. The data is converted to the selected output CAD format.
Warning:
The .dwg or .dxf file extensions must be included in the output file name.
  1. Refer to article links in the Related Information section below for more detailed instructions and tips on this conversion process.

文章 ID: 000008383

接收通知并查找新问题或常见问题的解决方案

从我们全新的 AI 聊天机器人中获得简明答案和视频解决方案。

下载 Esri 支持应用程序

相关信息

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项