New answers tagged data-driven-pages
This will export individual features from a feature class into separate shapefiles based on a name in a field. You will LIKELY need to work with the field names because it will work very differently depending on whether the field is a STRING or some other numeric type etc. Therefore expect to spend some time fiddling with the exact syntax of the WhereClause. ...
You can format your own dynamic text, assuming the date you want is an attribute of the data. Use the index layer attribute (or display expression) mentioned in the Page section near the bottom of the linked web page above. <dyn type="page" property="attribute" field="<Field Name>" domainlookup="true"/>
Couple of things: The output name for your pdf looks incorrect, you have: r"C:\test\\"".pdf" should it not be something like: r"C:\test\\mytest_" + pageName + ".pdf" The way you have your code indented means it loops through the for statement then exports the page layout, which will be your last map. I guess you want to export each map on each loop of ...
You need to make sure the pageNum is an integer, and you need to split the input values. For this example, you'll need to enter the pages like 1, 2, 3 with spaces. Give this a try: import arcpy mxd = arcpy.mapping.MapDocument("E:\\User Folders\\Recreation.mxd") ddp = mxd.dataDrivenPages pageNumbers = raw_input("Enter Page/s: ") for pageNum in ...
Not that I"m aware of, one quick alternative would be: Select Index layer features to exclude In attribute table, switch selection of features Use the Selected option for exporting pages See image below: You could add that idea here: ArcGIS Ideas
You have to remember (store in list) df.scale at each iteration. See if this will work import arcpy mxd = arcpy.mapping.MapDocument(r'd:\scratch\_wbench.mxd') df = arcpy.mapping.ListDataFrames(mxd) listOfScales= goodScales=[50,100,200,500,1000,2000,5000,10000,500000] for i in range(1, mxd.dataDrivenPages.pageCount + 1): ...
Top 50 recent answers are included