HOW TO
ArcGIS Pro allows exporting layouts and map series from the Share tab > Export Layout tool. Alternatively, you can also export a map series using a Python script. This article describes the steps to do this.
import os aprx = arcpy.mp.ArcGISProject(r"path of the project") #"CURRENT" can also be used to replace the path lyt = aprx.listLayouts()[x] #x: The number of the layout within the project ms = lyt.mapSeries ms.exportToPDF(os.path.join(r"Output Path", f"{lyt.name}")) print("Export Succeeded")
You can also use an IDLE to run the script with Python, but the arcpy module must be imported as well. This module is not required when using the ArcGIS Pro environment. The same applies to the "CURRENT" value in the aprx parameter, this cannot be used outside ArcGIS Pro so you must copy the full path. The picture below shows an example:
Get help from ArcGIS experts
Download the Esri Support App