sernst

Can Python tell when labels are done rendering?

Discussion created by sernst on Dec 21, 2011
Latest reply on Dec 22, 2011 by ksshannon
I'm trying to export maps using arcpy.mapping and data driven pages.  I'm giving my users four labeling options.  Two of the options are rather complex (using cross-database joins and lots of maplex settings) and take a long time to render. 

It seems that when I'm exporting the map pages from Python- the export isn't waiting for my labels to finish rendering.  So, a few pages in the atlas get exported without labels, and the rest of the pages get exported with labels.

So far, I've added the following to "slow down" Python:
import time
time.sleep(30)

Is there a better way to do this? 

Thanks,
Shawna

Outcomes