AnsweredAssumed Answered

Bug in arcpy.mapping

Question asked by JamesRamm on Oct 30, 2014

Has anyone else had this problem?

 

I have an mxd file with two layers in it, one of which is fairly 'heavy' (i.e. takes a minute or so to draw). All layers are visible by default.

 

I have the following code, which opens the mxd file (from outside arcmap) and exports it to a tiff.

 

import arcpy template = r"C:\mxd_templates\template1.mxd" mxd = arcpy.mapping.MapDocument(template) arcpy.mapping.ExportToTIFF(mxd, "C:/temp/test.tif")

 

The tif file is created, but the second 'heavy' layer is never rendered.

This happens no matter what image format I export to.

 

I've not found anywhere to be able to report bugs online, and I'm having a hard time to get ESRI to recognise this as a bug or to point out what I am doing wrong. Although it is hard to see what could possibly be wrong in 4 lines of code?

 

Same behaviour on 10.1, 10.2 and 10.2.2

Outcomes