Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to get the real extent of a rotated data frame in map units from the Layout View using ArcObjects. I've checked previous discussions on the subject:

How do I obtain the envelope of a data frame in Layout?

How can I transform layout page units to map units?

but it seems there was no final answer on how to get corner coordinates for a rotated data frame. Also, the tool provided in the above post does not recognize rotated data frames. It is a bit confusing as even if you rotate the data frame in ArcGIS, the extent, indicated in the Data Frame Properties, remains unchanged.

Is there a simple way to get the real extent directly from ArcObject, or do I need to calculate these coordinates using map scale, size of the data frame etc..? Any help would be appreciated.

share|improve this question

Doesn't ArcMap.Document.ActiveView.Extent gives the extent of the data frame? Maybe you can go through IActiveView.Extent Property.

share|improve this answer
Both return the unrotated envelope (i.e. same values regardless the rotation). – jan_b Jan 15 '13 at 10:52
Maybe you are trying to get a layer's extent, that is rotated. In that way, you can go through with :… – Emi Jan 15 '13 at 10:58

Ok, the question has already been asked: ArcGIS 10 creating a shape file from current dataframe extents in layout view and has been answered by npeihl and Kirk Kuykendall. My fault I have missed it in my initial search, credits go to npeihl and Kirk.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.