mxd = arcpy.mapping.MapDocument(r"X:\assr\carto\maps\Work_Map_Atlases\Residential_Atlases\Cycle_" + cycle_num + "_Atlas_temp.mxd") for page in Page_List: # Loop through Page_List Pg_Num =str(page) # Page number from Page_List pageID = mxd.dataDrivenPages.getPageIDFromName(Pg_Num) # Using the page number, get the pageID for the MXD mxd.dataDrivenPages.currentPageID = pageID # Set the current page in the DDP atlas to the pageID fieldValue_str = str(mxd.dataDrivenPages.pageRow.TRSQ) # Pull the TRSQ field info from the active Index page pageID_str = str(pageID) # Convert pageID to a string to use in the PDF output name string arcpy.mapping.ExportToPDF(mxd, folder_path + folder_name + "\\" + benchmark_folder_yr + "_" + I + "\\" + fieldValue_str + "_" + pageID_str + ".pdf", "PAGE_LAYOUT")
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.