Hi Jeff Barrette I ran this script from IDLE but it did not affect the visibility status of any layers:
print "This script turns off the following layers:"
try:
arcpy
except NameError:
import arcpy
mxd = arcpy.mapping.MapDocument(r"S:\EF1784\EF1784_Common\GIS\CODE SNIPPETS\remove bing\EF1784_050_000_GIS_0101.mxd")
for lyr in arcpy.mapping.ListLayers(mxd):
print lyr.name
lyr.visible = False
mxd.save
When I run the script in this thread from the Python window in ArcMap there are no issues. What am I doing wrong?
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.