I try to do the following in ArcGIS Pro with ArcPy: I want to select the current map in a project, in which the user is currently working.
So far I have just one map so I can do it like this:
aprx = arcpy.mp.ArcGISProject("CURRENT") s = aprx.listMaps("Scene") layerList = s.listLayers()
And then I do something with the selected features...
Now I have multiple maps and I don't want to iterrate through all layers in all maps. Is there some way to do something like this:
s = aprx.currentMap()
Or to test if the Map is the current one?