Returns the QUERYFILTER of an existing document feature layer as an associated list representing the query used to define the feature layer.
Syntax
(esri_docfeaturelayer_getquery flname)
Arguments
- flname | string | required | An existing document feature layer name in the drawing.
Example usage
Attempt to get the filter query properties for the Buildings feature layer as an associated list:(esri_docfeaturelayer_getquery "Buildings")
Result example usage
Returns the filter query properties for the Buildings feature layer as an associated list which consists of the DXF™ code for layer 8 and a comma separated string of AutoCAD layer names for the parent features and subtypes:
((8 . "Buildings"))
Return values
- If successful, returns an associated list representing the query used to define the feature layer. The associated list contains DXF™ codes as key values and an associated value that combine to create a filtering query for the feature layer.
- 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 one 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_getquery | Returns an associated list of query filter properties for the specified feature layer.