Skip To Content

esri_webfeaturelayer_set (AutoLISP)

Updates the properties of the specified web feature layer.

Syntax

(esri_webfeaturelayer_set flname service_properties)

Arguments

  • flname | string | required | An existing web feature layer name in the drawing.
  • service_properties | associated list | required | An associated list of web feature layer properties as dotted pairs as defined in the following table:

    Associated labelValue typeValue descriptionRequired or optional
    "EDITMODE"

    integer

    The editing option. {1=edit, 0=no edit}

    required

Example usage

Attempt to set the web feature layer properties for the Shelters to read-only.

(esri_webfeaturelayer_set "Shelters"
  (list
  (cons "EDITMODE" 0)
  )
)

Result example usage

Sets the web feature layer editing properties for the Shelters web feature layer, 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" . "Web feature layer not found."))

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