Skip To Content

esri_webfeaturelayer_discardedits (AutoLISP)

Redraws the web feature layer from the server and discards any unsynchronized edits in the drawing for the specified layer.

Syntax

(esri_webfeaturelayer_discardedits flname)

Arguments

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

Example usage

Attempts to discard all existing unsynchronized edits on the "Shelters" web feature layer.

(esri_webfeaturelayer_discardedits "Shelters")

Result example usage

Edits for the web feature layer are discarded, the web feature layer is redrawn and the function 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>"))

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" . "Web feature layer not found."))

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