I have a script that cycles through a directory of mxd's and creates a polygon of each mxd's dataframe's bounding box. Therefore, we can have one layer to use as an index layer for a map book.
However, several of the mxd's have a data frame rotated to something other than 0. The coordinates of the DF extent are being calcluated as if the rotation is always 0, and therefore my polygons are always right angled at true north, rather than reflecting the angle of the data frame.
Is there a way to calculate the real DF extent boundaing box of a rotated data frame?
thanks,
ryan