AnsweredAssumed Answered

Alter time properties of layer using Python?

Question asked by wdtadmin on Feb 4, 2015
Latest reply on Feb 4, 2015 by wdtadmin

First a bit of explanation of what I'm trying to do.  We are attempting to automate the creation/publishing to ArcGIS for Server of a new Map Document that contains several time-enabled Mosaic Datasets, each of which will eventually contain a full years worth of 30 minute imagery.  To that effect, we need to be able to reset the time extent (start/end time, and time step) on the new layers. 

 

So far the only way I've found to do this is with the Arcpy function "UpdateLayerTime".  This function is almost completely useless to someone attempting to do things completely in Python, as it requires the user have a reference layer to set the time properties of the target layer.  Well how do I use Python to set the time properties of THAT layer?  It's a 100% useless function.  Okay, rant over. 

 

But does anyone know of a way to (using Python NOT in any GUI) set the time properties of a time-enabled layer?

 

Thanks all!

Outcomes