1

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.

Is it possible to do this by any other means from ArcPy?

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

4
  • 1
    By "active view" you mean the map or layout tab that is enabled? Is it possible to do in ArcMap (between Data view and Layout)?
    – Midavalo
    Jun 1, 2017 at 2:22
  • @Midavalo Yes - that is what I mean by the active view. Using ArcPy with ArcMap it is accessible in the activeView property of the MapDocument class.
    – PolyGeo
    Jun 1, 2017 at 2:25
  • 1
    I can't find anything that looks similar in the 2.0 beta either. It appears that it's been removed rather than moved, as project (or map or layout) would be the places I'd expect to see it, but can't find it in any of those.
    – Midavalo
    Jun 1, 2017 at 3:21
  • Searching for "activeview" in the ArcGIS Pro documentation yields zero results. Also, I can't find it in any classes.
    – Fezter
    Jun 1, 2017 at 3:31

1 Answer 1

0

I have submitted an ArcGIS Idea for this:

Saving active view into ArcGIS Pro project using ArcPy:

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.