Skip to content

Instantly share code, notes, and snippets.

@toebR
Created September 6, 2023 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toebR/66a396a60ffc3f739e1105c8516c4ef8 to your computer and use it in GitHub Desktop.
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
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