<?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: Setting custom full extent? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/setting-custom-full-extent/m-p/374266#M9844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I could be wrong but I believe IActiveView.FullExtent is automatically calculated and this will overwrite any custom value you set.&amp;nbsp; In order to set a custom full extent, I believe you need to set IMap.AreaOfInterest.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You're right. I thought maybe I should be looking at an attribute of the Map, but I missed that one (even though I'm actually setting the default extent to an IRasterLayer.AreaOfInterest --should have figured that one out!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Dec 2010 20:05:51 GMT</pubDate>
    <dc:creator>StephenKilburn</dc:creator>
    <dc:date>2010-12-14T20:05:51Z</dc:date>
    <item>
      <title>Setting custom full extent?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/setting-custom-full-extent/m-p/374264#M9842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using (still) 9.3.1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The IActiveView diagram shows the FullExtent property as being Get/Put.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to do is programatically override the default full extent, i.e. have a program do the equivalent of View &amp;gt; Data Frame Properties... &amp;gt; Extent Used By Full Extent Command: Other &amp;gt; Specify Extent (specify custom extent).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Dim pMxDocument As IMxDocument
Dim pMap As IMap
Set pMxDocument = Application.Document
Set pMap = pMxDocument.FocusMap
Dim pActiveView As IActiveView
Set pActiveView = pMap
' let's presume we want to use the current extent, and it is different from the current full extent
pActiveView.FullExtent = pActiveView.Extent
' or
pActiveView.FullExtent.PutCoords pActiveView.XMin, pActiveView.YMin, pActiveView.XMax, pActiveView.YMax
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The FullExtent property stubbornly remains as the extent of all layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm left wondering whether the Map.RecalcFullExtent method is being fired when I change FullExtent and changing the envelope back to one surrounding all layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any suggestions or insight?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 19:17:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/setting-custom-full-extent/m-p/374264#M9842</guid>
      <dc:creator>StephenKilburn</dc:creator>
      <dc:date>2010-12-14T19:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Setting custom full extent?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/setting-custom-full-extent/m-p/374265#M9843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I could be wrong but I believe IActiveView.FullExtent is automatically calculated and this will overwrite any custom value you set.&amp;nbsp; In order to set a custom full extent, I believe you need to set IMap.AreaOfInterest.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 19:47:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/setting-custom-full-extent/m-p/374265#M9843</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2010-12-14T19:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Setting custom full extent?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/setting-custom-full-extent/m-p/374266#M9844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I could be wrong but I believe IActiveView.FullExtent is automatically calculated and this will overwrite any custom value you set.&amp;nbsp; In order to set a custom full extent, I believe you need to set IMap.AreaOfInterest.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You're right. I thought maybe I should be looking at an attribute of the Map, but I missed that one (even though I'm actually setting the default extent to an IRasterLayer.AreaOfInterest --should have figured that one out!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 20:05:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/setting-custom-full-extent/m-p/374266#M9844</guid>
      <dc:creator>StephenKilburn</dc:creator>
      <dc:date>2010-12-14T20:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Setting custom full extent?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/setting-custom-full-extent/m-p/374267#M9845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was just about to make a thread about this exact question. I tried searching but couldn't find an answer, but I decided to perform one last search, which was "custom extent dd", and I saw this thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*Sorry for resurrecting an old thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much for posting the answer, this worked perfectly, I am providing my code below for anyone who is having difficulties. I too overlooked the AreaOfInterest property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[PHP]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void SetDataFrameACustomFullExtent(IMapDocument pMapDocument)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IActiveView pActiveView = pMapDocument.ActiveView;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IEnvelope pEnvelope = new EnvelopeClass();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pEnvelope.XMax = 86.343146273; //Change these numbers to your numbers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pEnvelope.XMin = -86.343146273;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pEnvelope.YMax = 55.036972317;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pEnvelope.YMin = -55.036972317;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pMapDocument.Map[0].AreaOfInterest = pEnvelope;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/PHP]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;THANKS!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 12:53:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/setting-custom-full-extent/m-p/374267#M9845</guid>
      <dc:creator>AkhilParujanwala</dc:creator>
      <dc:date>2012-08-22T12:53:33Z</dc:date>
    </item>
  </channel>
</rss>

