I'm stumped. The following documentation says activeView will return the active MapView or Layout. I've searched high and low trying to find code to use which will tell me If the "active view" is a map or a layout but am having zero luck.
Any insight appreciated.
Solved! Go to Solution.
I was trying just .name
Suppose it makes sense when you think about it though.
Are these properties documented anywhere? Then only documentation I could find about activeView is basicallly the page I linked in the original question.
True. So I came up with the following:
When the active view is a map it displays the map name and when the active view is a layout it displays the layout name.
I was thinking that getting the name of the active layout should be mv.layout.name but no it's just mv.name
Logically it doesn't really make sense to me, but it works and I'm happy with that.
Thanks for all your help