Solved! Go to Solution.
>>> 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)
>>> 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