Created
September 6, 2023 07:43
-
-
Save toebR/66a396a60ffc3f739e1105c8516c4ef8 to your computer and use it in GitHub Desktop.
python code (console) to disable vibility of all layers in the current ArcGisPro Project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import arcpy | |
aprx = arcpy.mp.ArcGISProject("Current") | |
m = aprx.listMaps("Map")[0] | |
layers = m.listLayers() | |
for layer in layers: | |
layer.visible = False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment