Helped write the script on to Arcpy Click to toggle selectable? [duplicate]

المشرف العام

Administrator
طاقم الإدارة
This question is an exact duplicate of:


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))



import arcpynames = "[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_objsarcpy.RefreshTOC()arcpy.RefreshActiveView()



أكثر...
 
أعلى