AnsweredAssumed Answered

Python snippet to export a Map Series in Pro

Question asked by deleted-user-uXtLD1BYscf0 on Dec 29, 2017
Latest reply on Oct 31, 2018 by wr_sfoo

Is there a Python 3 example to export a Map Series in Pro 2.0.1?

Below is what I've used in python 2.0 . ArcMap 10.5 - is there something equivalent for Pro that will allow me to export all pages in a map series using Python?


mxdchs = arcpy.mapping.MapDocument(r"[PATH TO]\GRS_CHS.mxd")
pageNameField = "GNumber"

for pageNum in range(1, mxdchs.dataDrivenPages.pageCount + 1):
   mxdchs.dataDrivenPages.currentPageID = pageNum
   pageName = mxdchs.dataDrivenPages.pageRow.getValue(pageNameField)
   outEMF = outputfolderCHS + pageName + ".emf"
Combining Data Driven Pages with Python and arcpy.mapping | ArcGIS Blog