<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Updating Envelope in IMapDocument Context in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/updating-envelope-in-imapdocument-context/m-p/366655#M9653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fortunately found the answer on another forum thread - thanks Neil Clemmens and Simon Earnshaw.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Essentially you have to activate the Activeview - so ESRI. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A bit like setting the defaults on a Coordinate System - if they are defaults why the ?!?! do you have to set them?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to say the ArcObjects API is the worst API I have ever worked with. More complicated than it needs to be; mind numbingly obtuse with it's all the direct casts and often a single line of code will set off all kinds of random consequences. I spend my days writing a couple of lines of code and then testing to see if what I think the API might be doing is actually what the API is doing.... repeat ad infinitum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Adam&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to change the Real-World Location of a MapFrame whilst in an IMapDocument.Open context.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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!&lt;BR /&gt;Having said that; the idea that a MapFrame/Map doesn't have centre and rotation properties anyway is pretty laughable....&lt;BR /&gt;&lt;BR /&gt;Does anyone know how this might be done?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Adam&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jun 2011 14:14:29 GMT</pubDate>
    <dc:creator>AdamDavis</dc:creator>
    <dc:date>2011-06-02T14:14:29Z</dc:date>
    <item>
      <title>Updating Envelope in IMapDocument Context</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/updating-envelope-in-imapdocument-context/m-p/366654#M9652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to change the Real-World Location of a MapFrame whilst in an IMapDocument.Open context.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Having said that; the idea that a MapFrame/Map doesn't have centre and rotation properties anyway is pretty laughable....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how this might be done?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Adam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 13:02:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/updating-envelope-in-imapdocument-context/m-p/366654#M9652</guid>
      <dc:creator>AdamDavis</dc:creator>
      <dc:date>2011-06-02T13:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Envelope in IMapDocument Context</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/updating-envelope-in-imapdocument-context/m-p/366655#M9653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fortunately found the answer on another forum thread - thanks Neil Clemmens and Simon Earnshaw.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Essentially you have to activate the Activeview - so ESRI. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A bit like setting the defaults on a Coordinate System - if they are defaults why the ?!?! do you have to set them?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to say the ArcObjects API is the worst API I have ever worked with. More complicated than it needs to be; mind numbingly obtuse with it's all the direct casts and often a single line of code will set off all kinds of random consequences. I spend my days writing a couple of lines of code and then testing to see if what I think the API might be doing is actually what the API is doing.... repeat ad infinitum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Adam&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to change the Real-World Location of a MapFrame whilst in an IMapDocument.Open context.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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!&lt;BR /&gt;Having said that; the idea that a MapFrame/Map doesn't have centre and rotation properties anyway is pretty laughable....&lt;BR /&gt;&lt;BR /&gt;Does anyone know how this might be done?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Adam&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 14:14:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/updating-envelope-in-imapdocument-context/m-p/366655#M9653</guid>
      <dc:creator>AdamDavis</dc:creator>
      <dc:date>2011-06-02T14:14:29Z</dc:date>
    </item>
  </channel>
</rss>

