layer_lst = arcpy.mapping.ListLayers(arcpy.mapping.MapDocument("CURRENT")) for layer in layer_lst: if layer.name in ('dted_hillshade','dted_dem6x6') and layer.supports("DEFINITIONQUERY"): layer.definitionQuery = "\"NAME\"=\'000E00N.DT2\'" arcpy.RefreshActiveView()
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.