swingley_axio

Legend not updating between ExportToPDF() calls

Discussion created by swingley_axio on Apr 13, 2010
Latest reply on Apr 19, 2010 by jmoulds-esristaff
I'm exporting some maps and turning layers off and on between exports. I'm expecting the legend to update in my exported .pdfs but it's not. I've logged this with support but figured I'd start a thread here too. Here's a piece of my script:
for lyr in lyrs:
 if lyr.name in layer_list:
  print 'Exporting', lyr.name
  lyr.visible = True
  df.extent = lyr.getExtent()
  export_path = pdf_base + lyr.name + '.pdf'
  arc.ExportToPDF(mxd, export_path)
  lyr.visible = False


Is there some way to force the legend to update? I was thinking changing the layer's visibility should trigger a legend update. Anyone else seen this?

Outcomes