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?