Modifies the QUERYFILTER of an existing document feature layer. You cannot modify the query definition of feature layers with subtypes. Feature layers with subtypes are always defined with a single AutoCAD layer definition.
Syntax
(esri_docfeaturelayer_setquery FLNAME QUERYFILTER)
Arguments
- FLNAME [String] (required)—The document feature layer name.
- QUERYFILTER [Associated List] (required)—One or more DXF pairs to define members of the feature layer.
Associated label Value type Value description Required or optional DXF_CODE Integer
DXF property value.
Required
Operational conditions are set using the "-4" DXF code.
Example
Set the query of the Simple_Lines document feature layer to all Arcs or Lines.
(esri_docfeaturelayer_setquery "ALL_Lines"
(list
(cons -4 "<OR")
(cons 70 0)
(cons 0 "ARC")
(cons 0 "LINE")
(cons -4 "OR>")
))
Return values
- If successful, returns True
- If failed, returns nil. Possible reasons for failure include the following:
- Feature layer name does not exist in the drawing.
- Required values are missing.
- Invalid DXF types or ranges of values are entered.
- Poorly formed list, such as invalid dotted pairs or not an associated list.
- Feature layer has subtypes or is from a feature service. You cannot modify the query definition of feature layers with subtypes or those based on feature services.