Skip To Content

esri_fielddef_remove (AutoLISP)

Removes the field definition from the document feature layer, but does nothing to the entities. You cannot remove the field definitions of web feature layers.

Syntax

(esri_fielddef_remove flname field)

Arguments

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

field | string | required | An existing document feature layer attribute field name

Example usage

Attempt to remove the Undev field from the Parks feature layer:

(esri_fielddef_remove "Parks" "Undev")

Result example usage

Removes the field and returns a list of true:

(T)

Return values

  • If successful, the function returns a list of true: (T)
  • 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.