Quantcast
Channel: Question and Answer » arcpy
Viewing all articles
Browse latest Browse all 767

I only know how to turn off the entire current layer. But I want off only some of the layers specified

$
0
0

I only know how to turn off the entire current layer. But I want off only some of the layers specified

#turn all layers in current map doc on:
print "Button2--turn on layers"
mxd = arcpy.mapping.MapDocument("Current")
list_layers = arcpy.mapping.ListDataFrames()
for layer in list_layers:
    layer.visible = True

Viewing all articles
Browse latest Browse all 767

Trending Articles