What is the best way to get the current layout in arc gis pro 2.0? I know you can do MapView.Active to get the active Map, and that you can get layouts by name, but what if there is 3 or 4 layouts open and you just want the one the user is actively looking at?
I was unable to find a way to do this in the prosnippets or sdk, but I assume I am missing something
Hi,
This will be possible in Pro 2.1.
Thanks
Uma
Has this been added yet? I am searching in vain for a way to get a reference to the active layout.
I'm not seeing it in ArcGIS Pro 2.1. Has it been implemented?
Hi Delores,
Could you check if this section of the ProConcepts Layouts document addresses your needs:
ProConcepts Layouts · Esri/arcgis-pro-sdk Wiki · GitHub
For any questions or comments, please tag Original Publisher - @ChristopherZent ("Anonymous User")
Hi Delores
Here is the snippet that will get the Active Layout View:
https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Layouts#reference-the-active-layout-view
Thanks
Uma
My apologies. I commented in the wrong forum. I was looking for python arcpy.mp code