Select to view content in your preferred language

setting data driven pages with python

2993
2
03-04-2011 11:49 AM
jamesborris
Occasional Contributor
Is there a way to enable and run data driven pages using python? I would like to run datadriven pages on a shape and select the page name, extent, round to the nearest.. and all those properties using python script. Please let me know how if its possible. Thanks
0 Kudos
2 Replies
DanPatterson_Retired
MVP Emeritus
0 Kudos
JasonScheirer
Esri Alum
You cannot activate DDP from Python, you can only use DDP-enabled maps.For anything dynamic you might want to think about using an MXD set up for Data Driven Pages already, then use Layer.replaceDataSource to swap out the data for your new feature class. The only issue here is your field names will still need to all be the same.
0 Kudos