Select to view content in your preferred language

export data driven pages and single mxd with only one python script

2497
1
03-27-2014 12:07 PM
HebertAzevedo
New Contributor
Hi everyone,

In the past months i had a working in a script for export a group of maps from various mxd in a single folder. In this sense, i developed two approachs: (a) one mxd with a single map to export and (b) one mxd with various maps to export, using the driven data pages, both attached in this message. however i want transfome two scripts in only one so that every maps in mxds contained in a folder can be export. Any suggestions?
0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: hua17

Hello hebertazevedo6,

I haven't had a chance to look at your script, but you can test if an MXD has Data Driven Pages like this:
try:
     mxd.dataDrivenPages
    #export with Data Driven Pages
except:
    #export single map


Let me know if that is helpful. Good luck!
0 Kudos