Hi folks
Using ArcPy I would like to get a list of the selected layers from the contents of the active ArcGIS Pro Map.
I don't see a property or method for this on Layer nor on cim_layer returned by getDefinition on a layer object.
It seems it was previously possible with pythonaddins.
Any ideas appreciated
Thanks
Solved! Go to Solution.
I don't think this is possible.
ArcGIS Pro Get Active Layer - Esri Community
Maybe you can make a Python toolbox with a multivalue parameter and the user can select the layers there?
I don't think this is possible.
ArcGIS Pro Get Active Layer - Esri Community
Maybe you can make a Python toolbox with a multivalue parameter and the user can select the layers there?
Thanks, seems you must be right.
Strange this isn't possible as there are lots of tools that work on "selected" layers but I guess these tools use other APIS.