I have created one script which set a defination query at certain location in script.
I use lyr.definitionquery = "some expression"
After running the script i want to remove the definition query . But not getting any hint to do it.
arcpydefinition-query
I have created one script which set a defination query at certain location in script.
I use lyr.definitionquery = "some expression"
After running the script i want to remove the definition query . But not getting any hint to do it.
Best Answer
Just clear that property:
None
is the python forNULL
, so making it = None will clear the query.