AnsweredAssumed Answered

Python snippet to export a Map Series in Pro

Question asked by pmackenzie_hemmera on Dec 29, 2017
Latest reply on Jan 2, 2018 by pmackenzie_hemmera

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"
   arcpy.mapping.ExportToEMF(mxdchs,outEMF)
source:
Combining Data Driven Pages with Python and arcpy.mapping | ArcGIS Blog 

Outcomes