Setting DF inset window not behaving right?

Discussion created by ryankelley001 on Apr 28, 2011
Latest reply on May 2, 2011 by ryankelley001
I have two data frames. One is an inset map.

I want my inset map to have the same extent as my main data frame... this works just fine in the arcpy window, but not in my script. Pretty straightforward, but not sure why it's not working... any ideas?

DF = MAP.ListDataFrames(MXD)[0]
newInsetExtent = DF.extent
DF_inset = MAP.ListDataFrames(MXD)[1]
DF_inset.extent = newInsetExtent
DF_inset.scale = 1500000

My Map ends up with the correct scale of 1500000, but my extent never gets passed. Again, this works perfectly fine in the arcpy window.