This AutoLISP function converts a web feature layer to a document feature layer. Any web feature layer edits are abandoned and all features present on the layer remain. The AutoCAD layer name of the web feature layer will be modified to drop the prefix of "esri_" and the definition query of the resulting document feature layer will be set to that new layer name. Likewise any sublayers of the parent will have definition queries set to the new AutoCAD layer names for each sub feature layer.
Syntax
(esri_webfeaturelayer_extract flname)
Arguments
- flname | string | required | An existing web feature layer name in the drawing.
Example usage
Attempts to extract the web feature layer and its sub layers as a document feature layer with its sublayers. (esri_webfeaturelayer_extract "Shelters")
Result example usage
Converts the web feature layer and its sublayers to document feature layers and then returns a list of true: (T)
Return values
This function returns a value.
- If successful, it returns a list of true: (T)
- If failed, it returns a list with the first value of nil; then an associated list is returned 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 web feature layer value is not a valid web feature layer in the drawing.