AnsweredAssumed Answered

How to use Python to export selected data driven pages?

Question asked by ufeliciano on Jan 26, 2012
Latest reply on Jan 31, 2012 by ufeliciano
I???m trying to export to pdf just the selected data driven pages from a test mxd prepared, but I keep getting an error message.  I???m writing in the python window in desktop the following lines:

mxd = arcpy.mapping.MapDocument ("C:/Workspace/MyTESTS/DDP/MyDDP1K_Test.mxd")  tempDDP = mxd.dataDrivenPages  tempDDP.exportToPDF("C:/Workspace/MyTESTS/DDP/tempDDP.pdf","CURRENT") ??? fine  tempDDP.exportToPDF("C:/Workspace/MyTESTS/DDP/tempDDP.pdf","RANGE","5-12") ??? fine  tempDDP.exportToPDF("C:/Workspace/MyTESTS/DDP/tempDDP.pdf","SELECTED")  --test3...error (I had 3 pages selected and it works fine when doing it manually) 

Any help is appreciated...