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")
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.