Skip To Content

esri_fielddef_names (AutoLISP)

Returns a list of field names for an existing document or web feature layer.

Syntax

(esri_fielddef_names flname)

Arguments

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

Example usage

Attempt to get a list of the field names from the Manholes feature layer.

(esri_fielddef_names "Manholes")

Result example usage

Returns a list of the field names from the Manholes feature layer.

("EntityHandle" "EntityType" "Type" "Manufacturer" "Diameter")

Return values

  • If successful a list with the field names as a string is returned.
  • 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."))

    One or more of the required arguments is not supplied.

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

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