Skip To Content

esri_domain_delete (AutoLISP)

This function deletes the specified field domain definition from the drawing.

Syntax

(esri_domain_delete domain)

Arguments

  • domain | string | required | An existing field domain definition name in the drawing.

Example usage

Attempt to delete the field domain name definition called Treatment from the drawing.

(esri_domain_delete "Treatment")

Result example usage

Deletes the field domain definition called Treatment and returns a list of true:

(T)

Return values

The following are the possible return values:

  • If successful, returns a list of True: (T).
  • If failed, it 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" . "Incorrect argument."))

    The specified field domain name was not found in the drawing.

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

    The incorrect number of arguments were passed to the function.