<?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: How do I modify the Data Frame Extents from an ArcObjects application in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-modify-the-data-frame-extents-from-an/m-p/224880#M5865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to read the ActiveView full extent -but am always getting page coordinates as opposed to real world coordinates.&amp;nbsp; Any thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Oct 2013 22:24:43 GMT</pubDate>
    <dc:creator>DarrylKlassen</dc:creator>
    <dc:date>2013-10-17T22:24:43Z</dc:date>
    <item>
      <title>How do I modify the Data Frame Extents from an ArcObjects application</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-modify-the-data-frame-extents-from-an/m-p/224876#M5861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We're upgrading to ArcGIS 10 and we are changing a number of our feature classes and databases.&amp;nbsp; To assist our 2500 users we have written a program that converts old layers to the new layers where possible keeping the symbology etc.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need a little help in accessing the data frames associated with a map and changing the maximum extent when users click on the zoom out to full extent icon.&amp;nbsp; Going through the object models can be quite a chore.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could someone tell me which objects I'll need to use?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The program is written in c#.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 16:09:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-modify-the-data-frame-extents-from-an/m-p/224876#M5861</guid>
      <dc:creator>LarryWilliams</dc:creator>
      <dc:date>2012-06-19T16:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I modify the Data Frame Extents from an ArcObjects application</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-modify-the-data-frame-extents-from-an/m-p/224877#M5862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nevermind.&amp;nbsp; I found it.&amp;nbsp; Its under the ActiveView &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;MapDocument&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; aoMapTo = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;MapDocument&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; mxdFullToFilePath = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;.tbOutputFolder.Text + &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 2; font-family: Consolas;"&gt;"\\"&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; + fromFileName;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;toFileName = fromFileName;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; (aoMapTo.get_IsPresent(mxdFullToFilePath))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aoMapTo.Open(mxdFullToFilePath); &lt;BR /&gt; }&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; toDir = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;.tbOutputFolder.Text;&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;IActiveView&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; aoToActiveView = aoMapTo.ActiveView;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;aoToActiveView.FullExtent.Envelope.XMax = 14649;&lt;BR /&gt; aoToActiveView.FullExtent.Envelope.YMax = 5678978;&lt;BR /&gt;aoToActiveView.FullExtent.Envelope.XMin = -25723;&lt;BR /&gt; aoToActiveView.FullExtent.Envelope.YMin = 5631275;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 17:21:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-modify-the-data-frame-extents-from-an/m-p/224877#M5862</guid>
      <dc:creator>LarryWilliams</dc:creator>
      <dc:date>2012-06-19T17:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I modify the Data Frame Extents from an ArcObjects application</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-modify-the-data-frame-extents-from-an/m-p/224878#M5863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I guess I still have a problem.&amp;nbsp; The envelope isn't updateable.&amp;nbsp; The commands run but it has no effect.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 18:37:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-modify-the-data-frame-extents-from-an/m-p/224878#M5863</guid>
      <dc:creator>LarryWilliams</dc:creator>
      <dc:date>2012-06-20T18:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I modify the Data Frame Extents from an ArcObjects application</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-modify-the-data-frame-extents-from-an/m-p/224879#M5864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I finally found this in the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//0049000000m8000000"&gt;ArcObjects SDK 10 Microsoft .NET Framwork&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Heres the code in case the link doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;///&amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;///Set the extent of the ActiveView to be the maximum extent of a SpatialDomain. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;///&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;///&amp;lt;param name="spatialReference"&amp;gt;An ESRI.ArcGIS.Geometry.ISpatialReference interface that is the input SpatialDomain.&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;///&amp;lt;param name="activeView"&amp;gt;An ESRI.ArcGIS.Carto.IActiveView interface that is the ActiveView for which to recieve the new extent.&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;///&amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public void SetMaxExtentOnSpatialDomain(ESRI.ArcGIS.Geometry.ISpatialReference spatialReference, ESRI.ArcGIS.Carto.IActiveView activeView)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; System.Double xMin = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; System.Double xMax = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; System.Double yMin = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; System.Double yMax = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; spatialReference.GetDomain(out xMin, out xMax, out yMin, out yMax);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ESRI.ArcGIS.Geometry.IEnvelope envelope = new ESRI.ArcGIS.Geometry.EnvelopeClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; envelope.XMax = xMax;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; envelope.XMin = xMin;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; envelope.YMax = yMax;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; envelope.YMin = yMin;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; activeView.Extent = envelope;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 19:58:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-modify-the-data-frame-extents-from-an/m-p/224879#M5864</guid>
      <dc:creator>LarryWilliams</dc:creator>
      <dc:date>2012-06-20T19:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I modify the Data Frame Extents from an ArcObjects application</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-modify-the-data-frame-extents-from-an/m-p/224880#M5865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to read the ActiveView full extent -but am always getting page coordinates as opposed to real world coordinates.&amp;nbsp; Any thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 22:24:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-modify-the-data-frame-extents-from-an/m-p/224880#M5865</guid>
      <dc:creator>DarrylKlassen</dc:creator>
      <dc:date>2013-10-17T22:24:43Z</dc:date>
    </item>
  </channel>
</rss>

