leftieant76

Issue with Python and data driven pages

Discussion created by leftieant76 on Feb 1, 2016

Less of a question, more of a bug report.

 

I've been trying to export a map series using Python and DDP. The issue arises when I try and set map resolution when calling ddp.exportToPDF

 

I'm using ArcGIS 10.2.2 and Python 2.7.5 64 bit. I've tried running this from IDLE command line, IDLE interpreter, and PythonWin interpreter

 

This works:

 

>>> mxd = arcpy.mapping.MapDocument(r"D:\FOP1518\HPBR1516-11_FOP1516_Hume_Availability\mxd\fop_availability_layout_ddp.mxd")

>>> ddp = mxd.dataDrivenPages

>>> ddp.exportToPDF(r"D:\FOP1518\HPBR1516-11_FOP1516_Hume_Availability\output\Murrindindi\BurnAvailability_Murrindindi_","ALL","","PDF_MULTIPLE_FILES_PAGE_NAME")

 

But when I try and set output resolution to 250dpi, the interpreter crashes

 

ddp.exportToPDF(r"D:\FOP1518\HPBR1516-11_FOP1516_Hume_Availability\output\mur_test\BurnAvailability_Murrindindi_","ALL","","PDF_MULTIPLE_FILES_PAGE_NAME",250)

 

Has anyone else experienced this? Am I doing something blindingly obviously wrong?

 

Thanks

 

Anthony

Outcomes