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.

asked Jun 1, 2017 at 2:05
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)? Commented 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. Commented 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. Commented 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. Commented 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.

answered Jun 17, 2017 at 9:09

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.