AdamDavis

Updating Envelope in IMapDocument Context

Discussion created by AdamDavis on Jun 2, 2011
Latest reply on Jun 2, 2011 by AdamDavis
Hi,

I am trying to change the Real-World Location of a MapFrame whilst in an IMapDocument.Open context.

The normal code of using the ActiveView's Envelope doesn't seem to work in this case as I guess the document isn't actually open in the ArcGIS window. MapFrame.MapBounds doesn't seem to work either.

Still it seems perfectly sensible that if copy layers over and do all kinds of other great stuff in the IMapDocument context that a simple change in Envelope should be simple!
Having said that; the idea that a MapFrame/Map doesn't have centre and rotation properties anyway is pretty laughable....

Does anyone know how this might be done?

Thanks,

Adam

Outcomes