<?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: Executing ICommandItem in vb.net in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/executing-icommanditem-in-vb-net/m-p/566056#M15243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You may have to use esriArcMapUI.PauseDrawingCommand in place of arcid.PanZoom_PauseDrawing. Below link lists the ids for all arcmap builtin objects&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000029s000000"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000029s000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;code migration to vb.net&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Walkthrough_Migrating_VB6_to_VB_NET_for_ArcGIS_10/00010000035n000000/"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Walkthrough_Migrating_VB6_to_VB_NET_for_ArcGIS_10/00010000035n000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Feb 2012 12:51:13 GMT</pubDate>
    <dc:creator>sapnas</dc:creator>
    <dc:date>2012-02-06T12:51:13Z</dc:date>
    <item>
      <title>Executing ICommandItem in vb.net</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/executing-icommanditem-in-vb-net/m-p/566055#M15242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need assistance running ArcMap built-in toolbar commands in vb.NET.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a simple Sub that paused my drawing in VBA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Public Sub pauseDrawing()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pCmdItem As ICommandItem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pCmdItem = Application.Document.CommandBars.Find(arcid.PanZoom_PauseDrawing)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; pCmdItem.Execute&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;What is the equivelant to the above in vb.NET?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I realize the ArcID is not available directly in .NET.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have searched several sites for the solution, and found some that seem like they should work, but they do not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone can post a snippet, including all IMxDocument and IApplication initialization statements, that would be helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS: 10.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Visual Studio: 2010&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDK: .NET&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2012 12:31:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/executing-icommanditem-in-vb-net/m-p/566055#M15242</guid>
      <dc:creator>BradErickson</dc:creator>
      <dc:date>2012-02-06T12:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Executing ICommandItem in vb.net</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/executing-icommanditem-in-vb-net/m-p/566056#M15243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You may have to use esriArcMapUI.PauseDrawingCommand in place of arcid.PanZoom_PauseDrawing. Below link lists the ids for all arcmap builtin objects&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000029s000000"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000029s000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;code migration to vb.net&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Walkthrough_Migrating_VB6_to_VB_NET_for_ArcGIS_10/00010000035n000000/"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Walkthrough_Migrating_VB6_to_VB_NET_for_ArcGIS_10/00010000035n000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2012 12:51:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/executing-icommanditem-in-vb-net/m-p/566056#M15243</guid>
      <dc:creator>sapnas</dc:creator>
      <dc:date>2012-02-06T12:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Executing ICommandItem in vb.net</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/executing-icommanditem-in-vb-net/m-p/566057#M15244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The shortest piece of code that I have working is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pUID As New UID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pUID.Value = "esriArcMapUI.PauseDrawingCommand"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim p As ICommandItem = My.ArcMap.Application.Document.CommandBars.Find(pUID)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;p.Execute()&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2012 13:30:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/executing-icommanditem-in-vb-net/m-p/566057#M15244</guid>
      <dc:creator>BradErickson</dc:creator>
      <dc:date>2012-02-06T13:30:48Z</dc:date>
    </item>
  </channel>
</rss>

