AnsweredAssumed Answered

Question:  arcpy.mapping.ExportToPNG Usage

Question asked by dmeek000@gmail.com on May 5, 2015
Latest reply on May 5, 2015 by dmeek000@gmail.com

I'm trying to export a layout (not an individual data frame) using arcpy.mapping.ExportToPNG and have run into an issue.  I cannot change the resolution to 300 DPI.  I'm getting a parsing error, so if someone could help me with my syntax it would be really appreciated.

 

My script so far:

 

 

import arcpy,os,sys,string

 

import arcpy.mapping

 

from arcpy import env

 

 

env.workspace = r"C:\Users\COPT1469\Documents\Map MXDs\Auto_Export_MXD" 

 

for mxd in arcpy.ListFiles("*.mxd"):

 

    print (mxd)

    exportdoc = arcpy.mapping.MapDocument(r"C:\Users\COPT1469\Documents\Map MXDs\Auto_Export_MXD\\" + mxd)

 

    arcpy.mapping.ExportToPNG(exportdoc, r"C:\Users\COPT1469\Documents\Map Images\Auto_Export_Files\wallmap_test.png",,,,resolution=300)

 

    exportdoc.save()

    delete (mxd)

 

 

Thanks in advance for your help.

 

David

Outcomes