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?
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.