The function returns an associated list of element settings:
- The type value is the AutoCAD or Civil 3D entity type used when new features are created in ArcGIS for AutoCAD. The valid values are POINT, Block Reference, or AECC_COGO_POINT.
- The description value is the AutoCAD block insert name when the element type is Block Reference.
- The description value is the point description prefix value when the element type is AECC_COGO_POINT.
Syntax
(esri_featurelayer_getDefaultElementType flname subtype)
Arguments
- flname | string | required | An existing point feature layer name in the drawing.
- subtype | string | required | An existing point feature layer subtype name in the drawing. Enter "" for an empty string if no subtype is specified.
Example usage
Requests the element setting of a feature layer named Damage_to_Residential_Buildings with no subtype. (esri_featurelayer_getDefaultElementType "Damage_to_Residential_Buildings" "")
Result example usage
Returns the element setting as an associated list in which the TYPE value is the entity type of the feature layer symbol and the DESCRIPTION value is the block name:
(("TYPE"."Block Reference")("DESCRIPTION"."Damaged_Structure"))
Return values
- If successful, an associated list is returned in which the Type value is the POINT, Block Reference, or COGO_POINT entity type, and the DESCRIPTION value is the block insert name or COGO point description prefix.
- If failed, a list is returned with the first value of nil; then an associated list is returned containing the key value Error and an associated error message as a string: (nil ( "Error" . "<message>")).
Failed returned values
A failed return value can occur for any of the following reasons:
- (nil ("Error" . "Missing required
argument."))
One of the three required arguments was not provided.
- (nil ("Error" . "Unsupported geometry type."))
The function works with point feature layers only.
- (nil ("Error" . "No feature layer specified"))
No valid feature layer was provided.
- (nil ("Error" . "Feature layer not found."))
The specified feature layer does not exist in the file.
- (nil ("Error" . "Subtype name does not exist."))
The specified subtype does not exist.