A local ArcGIS feature layer is a named selection set of AutoCAD objects that share a common set of properties. Create and configure objects on the fly to display a particular subset of content as a feature layer that is recognized by ArcGIS Desktop. These feature layers function similarly to definition queries in ArcGIS Desktop with the added ability to define attribute fields and attach feature attributes to native AutoCAD geometry.
Feature layer schema
Feature layer schema is non-graphic information that is embedded in the drawing at the dataset (or drawing) level. They are empty schema-only feature layers that store metadata and do not contain the actual feature data. The information is stored as native DWG records in a standardized framework of DWG object dictionaries.
Name
This property specifies the feature layer name. The name must be unique to the current drawing, begin with a letter. The best practice is to choose a name that clearly describes the features with a mixed-case naming convention. The document feature layer name can be changed using the ESRI_featurelayer command.
Type
This property defines the ArcGIS feature geometry type and limits the feature layer to specific AutoCAD objects listed in the following table. To change the feature type, you must create a new feature layer.
| ArcGIS geometry type | Supported AutoCAD DWG object |
|---|---|
Point | Point, Insert |
Polyline | Arc, Circle, Ellipse, Line, Mline, Polyline, Spline, solid, 3Dface |
Polygon | Circle, Solid, Ellipse, Face, Closed Polyline, Closed 3D Polyline, Closed Mline |
Annotation | Text, Mtext, Attribute, Attdef |
Multipatch | Circle, Ellipse, Closed Mline, Closed Spline, Solid, 3Dface |
Query
A query is a user-configurable property that narrows the selection set defined by the type property. This aggregate list creates the final selection set object that is passed to the selection method.
Commas can be used as logical OR operators to separate property values that are specified with strings, such as multiple layer names or line types. If the filter is left blank, all AutoCAD objects defined by the feature type are members of the feature layer by default.
Fields
Fields allow you to attach feature attributes directly to AutoCAD objects and edit them. You can add or remove fields from a document feature layer at any time. You define them with a name, data type, and value similar to a field definition in a geodatabase.
Name
The name property defines the name of the (virtual) table column. This name appears as a field heading when you view feature attributes in the attribute table.
Type
Type specifies the kinds of values you can store in the attribute field.
Type | ArcGIS equivalent |
String | Text |
Double | Double |
Short | Short Integer |
Integer | Long integer |
Date | Date |
GUID |
Default value
This property sets a default attribute value for all new members of the feature layer.
Length
Length sets the maximum number of characters that can be input for a feature attribute. This property is recognized only for text fields.
Feature layer diagram
