My reason for responding to this post is two fold: 1: Is to show the sample code to export to EPS that is working. 2: Since the upgrade to ArcGIS 10 Service Pack 1, the script now produces negative images. I am still a beginner in the Python scripting world....any tips to how to fix this: # Import system modules import sys, arcpy # Define current mxd mxd = arcpy.mapping.MapDocument ("CURRENT") # Local variables inputed by user sheetname = sys.argv[1] folder = sys.argv[2] # Process: export EPS data driven pages for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1): mxd.dataDrivenPages.currentPageID = pageNum arcpy.AddMessage ("exporting sheet " + str(pageNum)) #add leading zeros if pageNum < 10: arcpy.mapping.ExportToEPS(mxd, str(folder) + "\\" + str(sheetname) + "_00" + str(pageNum) + ".eps") elif pageNum <100: arcpy.mapping.ExportToEPS(mxd, str(folder) + "\\" + str(sheetname) + "_0" + str(pageNum) + ".eps") else: arcpy.mapping.ExportToEPS(mxd, str(folder) + "\\" + str(sheetname) + "_" + str(pageNum) + ".eps") Thanks.
... View more