Skip To Content

esri_docfeaturelayer_remove (AutoLISP)

Deletes the document feature layer in the drawing, but leaves the entities of a document feature layer unchanged. You can modify the document feature layer properties by removing and adding new feature layer properties.

Syntax

(esri_docfeaturelayer_remove flname)

Arguments

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

Example usage

Attempt to remove the Parks document feature layer definition from the current drawing:

(esri_docfeaturelayer_remove "Parks")

Result example usage

Removes the document feature layer definition from the drawing and all entities remain unchanged, then returns a list of true:

(T)

Return values

  • If successful, 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."))

    The required argument was not supplied.

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

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

See also

esri_featurelayer_remove | Removes a web feature layer or document feature layer from the current drawing.

esri_webfeaturelayer_remove | Removes a web feature layer from the current drawing.