MapSeries - exporting multiple files via arcpy

06-25-2019 06:07 PM
New Contributor II

Have a ArcGIS Pro project with multiple layouts and mapseries, I'm trying to write a script that will allow you to specify a layout and range and export the corresponding maps as a PDF.

arcpy.env.overwriteOutput = True

aprx ="D:\Project.aprx")

#choose mapseries, range and output folder
MapSeriesCurrent = 'MS1'
MapSeriesRange = '1-5'
Output = r"D:\Users\JoeBloggs"

#export map series as PDF
for lyt in aprx.listLayouts():
    ms = lyt.mapSeries
    if MapSeriesCurrent in and ms.enabled:

This script works fine - except for the multiple_files parameter ("PDF_MULTIPLE_FILES_PAGE_NAME"). When I remove that the script produces the pdfs as expected in single file but once I add that parameter there is no output or error message.

I've checked the MapSeries in the project and they have set Name and Sort Fields,changing to PDF_MULTIPLE_FILES_PAGE_NUMBER doesn't work either. 

Any suggestions?

Tags (2)
0 Kudos
1 Reply
New Contributor III

@IceCreamBean I seem to be getting the same error. Any luck with this?

0 Kudos