AnsweredAssumed Answered

How can a MAPX file be created from Python outside of ArcGIS Pro?

Question asked by azatrain on Jan 28, 2017
Latest reply on Oct 10, 2018 by Dan_Patterson

I am trying to script the creation of MAPX files from maps within an APRX.  I need to do this outside of ArcGIS Pro.  I did a lot of reading up in the documentation and I didn't find anything that led me to believe this could be done.  I've been trying to get the Consolidate Map tool to do this.  Seems like it creates a MAPX when you run it within Pro, but it will only run outside Pro when you pass it a MAPX as its first parameter.  As of now it looks like I need to create all my MAPX files manually from within Pro.


So the end game here is to take an existing APRX and script the creation of MAPX files at various extents.  Then I can use those MAPX files as inputs into other Pro-based geoprocessing tools that I can script from Python outside of Pro.  Can anyone point me in the right direction or let me know if this is even possible at this point?  I just upgraded to 1.4 so I have the latest and greatest stuff.  Thanks in advance for the help ...