Geographic Information Systems Asked on November 1, 2021
I am trying to export all of my current map series pages into multiple PDFs with the Page Name as the file name. So, "PAGENAME.pdf"… Currently, the code runs, but no output is given. I have looked around at other documentation and it doesn’t seem to help in my instance. The output is not producing any PDFs at the moment but there are map series records in the project!
import arcpy, os, sys
aprx = arcpy.mp.ArcGISProject(r"My Documents20-0181 - Map Edits.aprx")
outpath = (r"My DocumentsPhase 7 Data")
l = p.listLayouts()[0]
if not l.mapSeries is None:
ms = l.mapSeries
if ms.enabled:
for pageNum in range(1, ms.pageCount + 1):
ms.currentPageNumber = pageNum
print("Exporting {0}".format(ms.pageRow.CCTVLines_Select_FACILITYID))
pageName = ms.pageRow.CCTVLines_Select_FACILITYID
l.exportToPDF(outpath + "{ms.pageRow.STATE_NAME}.pdf")
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP