I cannot write a script using ArcPy (Click to toggle selectable).
To make a layer unavailable for sampling!
I just need to create a tool to automate several processes, one of them is the ability to automatically turn off the sample multiple layers on the map! To do this manually! It turns out I have a database with all the layers, I need to when starting a new mxd, clicking on a script or a tool to fully customize my card as I need))
This script does not work, maybe someone else will?
import arcpy
names = "[R_01_001]"
mxd = arcpy.mapping.MapDocument("current")
df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]
layers = arcpy.mapping.ListLayers(mxd)
for layer in layers:
if layer.name in names:
unselectable_objs=True
print unselectable_objs
arcpy.RefreshTOC()
arcpy.RefreshActiveView()
This script does not work
import bpyunselectable_objs = []
for obj in bpy.data.objects:
if obj.hide_select == true: unselectable_objs.append(obj)
obj.hide_select = falseprint(unselectable_objs)