Skip To Content

esri_featurelayer_get (AutoLISP)

Returns an associated list of feature layer properties.

Syntax

(esri_featurelayer_get flname)

Arguments

  • flname | string | required | An existing document or web feature layer name in the drawing.

Example usage

Attempt to get the feature layer properties for the Buildings feature layer.

(esri_featurelayer_get "Buildings")

Result example usage

Gets the feature layer properties for the Buildings feature layer as an associated list.

(("NAME" . "Buildings") ("GEOMTYPE" . "Polygon") ("TYPEFIELD" . "") ("FLTYPE" . "Document"))

Return values

  • If successful the function returns an associated list of feature layer properties as dotted pairs with a label and value. The associated list may include the following properties:

    Associated labelValue typeValue description
    "NAME"

    string

    The name of the feature layer.

    "GEOMTYPE"

    string

    The feature layer geometry type: {"Polygon", "Polyline", "Point", "Multipatch", "Annotation"}.

    "TYPEFIELD"

    string

    If the feature layer has subtypes, this is the name of the field that subtypes are based upon; otherwise, it is omitted.

    "FLTYPE"

    string

    Returns the Document or Web feature layer type.

  • If failed, returns a list with the first value of nil and then an associated list containing the key value "Error" and an associated error message as a string: (nil ("Error" . "<message>"))

Failed return values

A failed return value can occur for any of the following reasons:

  • (nil ("Error" . "Missing required argument."))

    The required argument is not supplied.

  • (nil ("Error" . "Feature layer not found."))

    The specified feature layer value is not a valid feature layer in the drawing.