Saving active view into ArcGIS Pro project using ArcPy

Idea created by graeme on Jun 17, 2017
    • graeme
    • timmhay

    I have a desirable requirement to be able to set the active view (Layout, Map, Basemap, etc) in an ArcGIS Pro project using ArcPy.

    However the ArcGISProject class does not seem to provide a method to do this.

    I would like to be able to make sure that a particular Layout in my ArcGIS Pro project is the view that a copy of my project (made using the saveACopy method) opens to when I give it to someone.

    If I were using ArcPy with ArcMap the equivalent would be accessible in the activeView property of the MapDocument class.