>>> mxd = arcpy.mapping.MapDocument("Current") ddp = mxd.dataDrivenPages df = arcpy.mapping.ListDataFrames(mxd)[0] for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1): mxd.dataDrivenPages.currentPageID = pageNum arcpy.mapping.ExportToTIFF(mxd,r"C:\Temp\\" + str(ddp.pageRow.Name) + ".tif", df)
Have you tried something like: >>> mxd = arcpy.mapping.MapDocument("Current") ddp = mxd.dataDrivenPages df = arcpy.mapping.ListDataFrames(mxd)[0] for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1): mxd.dataDrivenPages.currentPageID = pageNum arcpy.mapping.ExportToTIFF(mxd,r"C:\Temp\\" + str(ddp.pageRow.Name) + ".tif", df) Where the "Name" pageRow.Name is the name of the field in the index layer.Jeff
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.