Hello,
I am using Arcgis Pro 2.4.3 and have the following code:
aprx = arcpy.mp.ArcGISProject("CURRENT")
mv = aprx.activeMap
arcpy.AddMessage(mv.name)
I'm using this to get the active map window, but what I'm having trouble figuring out is how do I determine if the "active" window is a layout window. If the above is used on a layout window it will return the name of the map that the active map frame is based on in the layout.
It's tricky searching the online documentation when I'm not using the current version of Pro. There is a activeView property which I think does what I want to do, but I don't think it's available in 2.4.3.
Thanks!