<?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 How to zoom to a specific scale in ArcMap 9.3 in Vb.net? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-zoom-to-a-specific-scale-in-arcmap-9-3-in/m-p/188173#M4902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Greetings,&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wonder if there is any way to set the scale of the "Zoom to selected Feature" functionality through Vb.Net code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if this is can not be done. Could I zoom to the selected feature then set the scale to the value I want similar to what we can do in ArcMap 9.3(Zoom to selected then enter the value of the scale in the scale text found on the &lt;/SPAN&gt;&lt;STRONG&gt;Standard Toolbar&lt;/STRONG&gt;&lt;SPAN&gt;). Is this possible? How?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Please advise...&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2011 05:06:22 GMT</pubDate>
    <dc:creator>dgesridgesri</dc:creator>
    <dc:date>2011-06-07T05:06:22Z</dc:date>
    <item>
      <title>How to zoom to a specific scale in ArcMap 9.3 in Vb.net?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-zoom-to-a-specific-scale-in-arcmap-9-3-in/m-p/188173#M4902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Greetings,&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wonder if there is any way to set the scale of the "Zoom to selected Feature" functionality through Vb.Net code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if this is can not be done. Could I zoom to the selected feature then set the scale to the value I want similar to what we can do in ArcMap 9.3(Zoom to selected then enter the value of the scale in the scale text found on the &lt;/SPAN&gt;&lt;STRONG&gt;Standard Toolbar&lt;/STRONG&gt;&lt;SPAN&gt;). Is this possible? How?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Please advise...&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 05:06:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-zoom-to-a-specific-scale-in-arcmap-9-3-in/m-p/188173#M4902</guid>
      <dc:creator>dgesridgesri</dc:creator>
      <dc:date>2011-06-07T05:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to zoom to a specific scale in ArcMap 9.3 in Vb.net?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-zoom-to-a-specific-scale-in-arcmap-9-3-in/m-p/188174#M4903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;dgesri,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you are asking does not make sense. If you want to zoom to a selection then to zoom to the extent of that selection &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;must&lt;/SPAN&gt;&lt;SPAN&gt; alter the scale. Below is the VBA code that you could use to call the zoom to selection tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public Sub ZoomToAllSelectedFeatures()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Zoom to selection by calling standard tool
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pCmdItem As ICommandItem
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pUID As New UID
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pUID.Value = "{AB073B49-DE5E-11D1-AA80-00C04FA37860}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pCmdItem = ThisDocument.CommandBars.Find(pUID)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pCmdItem.Execute
End Sub&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:30:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-zoom-to-a-specific-scale-in-arcmap-9-3-in/m-p/188174#M4903</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2021-12-11T09:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to zoom to a specific scale in ArcMap 9.3 in Vb.net?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-zoom-to-a-specific-scale-in-arcmap-9-3-in/m-p/188175#M4904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Mr. Hornbydd for your interest on this post,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, I`m already using this function &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;"ZoomToAllSelectedFeatures" &lt;/SPAN&gt;&lt;SPAN&gt; but I want to change the scale of the zoom if possible. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or I think I can change the scale of the extent after I call that function but through vb.net code. Again if this is possible, please advise?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks guys...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 12:13:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-zoom-to-a-specific-scale-in-arcmap-9-3-in/m-p/188175#M4904</guid>
      <dc:creator>dgesridgesri</dc:creator>
      <dc:date>2011-06-07T12:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to zoom to a specific scale in ArcMap 9.3 in Vb.net?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-zoom-to-a-specific-scale-in-arcmap-9-3-in/m-p/188176#M4905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can change map scale like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Dim pMap As IMap
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pmxDoc As IMxDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pmxDoc = ThisDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pMap = pmxDoc.FocusMap
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pMap.MapScale = 10000&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This VBA example assumes your data frame has its coordinate system set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:30:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-zoom-to-a-specific-scale-in-arcmap-9-3-in/m-p/188176#M4905</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2021-12-11T09:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to zoom to a specific scale in ArcMap 9.3 in Vb.net?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-zoom-to-a-specific-scale-in-arcmap-9-3-in/m-p/188177#M4906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much Mr. Hornbydd,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was thinking of changing the zoom scale so when I zoom to a selected feature then it zoom to the location of that selected feature but with a specific scale.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, what you have posted about changing the map scale is another workaround and it helped me a lot..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again thank you man...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 10:55:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-zoom-to-a-specific-scale-in-arcmap-9-3-in/m-p/188177#M4906</guid>
      <dc:creator>dgesridgesri</dc:creator>
      <dc:date>2011-06-08T10:55:00Z</dc:date>
    </item>
  </channel>
</rss>

