Skip To Content

esri_webfeaturelayer_editcounts (AutoLISP)

Returns the number of pending changes to the specified layer. Returns number of additions, deletions, and modifications. Use this function before synchronization to determine expected changes.

Syntax

(esri_webfeaturelayer_editcounts flname)

Arguments

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

Example usage

Attempt to get the edit counts for the Shelter web feature layer:

(esri_webfeaturelayer_editcounts "Shelters")

Result example usage

Gets the edit counts for the Shelter web feature layer as an associated list:

(("Additions" . 1) ("Deletions" . 0) ("Modified" . 3))

Return values

  • If successful, returns the edit count types and values as an associated list of dotted pairs.

    Associated labelValue typeValue description
    "Additions"

    Integer

    The number of features that would be added to the feature layer.

    "Deletions"

    Integer

    The number of features that would be deleted from the feature layer.

    "Modified"

    Integer

    The number of features that would be modified in the feature layer.

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.