I am working with the python code below in ArcGIS to zoom into a shapefile's attribute table row features without selected until the end of table one by one.
I am trying to use this code but this one requires that a row is selected.
import arcpy
mxd = arcpy.mapping.MapDocument('CURRENT')
df = arcpy.mapping.ListDataFrames(mxd, "Layers") [0]
df.zoomToSelectedFeatures()
arcpy.RefreshActiveView()
Any Help?
Thanks
Thank you for your reply.
lets say, I have mapindex shapefile which has a 10 record in the attribute table. I want to zoom into first row automatically, then save the ArcMap .mxd or export as pdf. then move to next row, and do the same process(zoom in, save and export) until the end of record(row 10) in mapindex's attribute table.
Again Thank you

df.zoomToSelectedFeatures()anddf.extent = lyr.getSelectedExtent()here or here may be helpful. – anoved Dec 20 '12 at 20:59