<?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: Add-in; Failure to get code to execute when toolbar button pressed in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517686#M13943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To provide a bit more detail to my question, all of the routines I had written, check for the existence of a field in the attribute table, create the field if not present, and populates the field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In reading about add-ins, there were some limitations, but I didn't quite catch whether working on the table structure would be within those limitations.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Nov 2010 13:59:52 GMT</pubDate>
    <dc:creator>DaleBridgford</dc:creator>
    <dc:date>2010-11-30T13:59:52Z</dc:date>
    <item>
      <title>Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517684#M13941</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 had written several VBA routines up through 9.3 and have since upgraded to 10.&amp;nbsp; Since VBA will be a thing of the past in the next version, I downloaded and installed VB Express 2008 and successfully (I think) migrated the VBA to VB.Net 2008.&amp;nbsp; I saved out each of the routines to their respective *.vb files and ran the Add-In wizard for a new project, adding each routine as a button added to a toolbar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything compiles and I get my toolbar to show up in ArcMap, but when I press any of the buttons, they grey out and nothing executes.&amp;nbsp; Similarly, the breakpoints I have inserted go hollow with a yellow triangle and when I hover over the breakpoint, it states that "The breakpoint will not currently be hit.&amp;nbsp; No symbols have been loaded for this document."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that somehow I am missing the magic of how to tie the XML stuff to the VB.Net code.&amp;nbsp; Is there any VB code that links the code back to the XML so it functions?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any insight is greatly appreciated.&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;Dale Bridgford&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 14:10:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517684#M13941</guid>
      <dc:creator>DaleBridgford</dc:creator>
      <dc:date>2010-11-22T14:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517685#M13942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To provide a bit more background, I am enclosing a portion of the code.&amp;nbsp; This is typical of what I have cludged together from various posts.&amp;nbsp; All variations that I have tried are equally inoperative.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, any insight as to where I have gone astray would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dale Bridgford&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Imports ESRI.ArcGIS.Geometry


Namespace ERMDTools

&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Class btnAddHyperlink
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits ESRI.ArcGIS.Desktop.AddIns.Button
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub New()

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Protected Overrides Sub OnClick()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pFeature As IFeature, pLayer As ILayer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pMap As IMap
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pSRE As SpatialReferenceEnvironment
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pQF As IQueryFilter
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pMSR As ISpatialReference
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pGeoDataset As IGeoDataset
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pMxDoc As ESRI.ArcGIS.ArcMapUI.IMxDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pMxDoc = Nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pMxDoc = m_App.Document
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pMap = pMxDoc.FocusMap
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pMSR = pMap.SpatialReference 
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:34:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517685#M13942</guid>
      <dc:creator>DaleBridgford</dc:creator>
      <dc:date>2021-12-11T22:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517686#M13943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To provide a bit more detail to my question, all of the routines I had written, check for the existence of a field in the attribute table, create the field if not present, and populates the field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In reading about add-ins, there were some limitations, but I didn't quite catch whether working on the table structure would be within those limitations.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 13:59:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517686#M13943</guid>
      <dc:creator>DaleBridgford</dc:creator>
      <dc:date>2010-11-30T13:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517687#M13944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dale,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having exactly the same problem. did you find a solution? Any help will be really appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Elisa&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 23:44:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517687#M13944</guid>
      <dc:creator>elisapuccioni</dc:creator>
      <dc:date>2010-12-02T23:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517688#M13945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Elisa,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, but to this point, I have had no responses in either place I have posted this question.&amp;nbsp; If there is additional information anyone needs on this, please let me know.&amp;nbsp; The add-in concept seems to make for a clean way to distribute functionality without having to register .dll's or the like.&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;Dale&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 18:14:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517688#M13945</guid>
      <dc:creator>DaleBridgford</dc:creator>
      <dc:date>2010-12-09T18:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517689#M13946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rather than immediately trying to implement your VBA code conversion, have you tried just getting a simple message box "Hello World" to display from the OnClick() event? That way you check if the basic Add-In framework is working correctly before incorporating any actual ArcObjects code. The wizard should be handling all the XML and boilerplate code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 18:38:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517689#M13946</guid>
      <dc:creator>JeffreyHamblin</dc:creator>
      <dc:date>2010-12-09T18:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517690#M13947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the suggestion, Jeff.&amp;nbsp; I will attempt to see if that works now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 13:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517690#M13947</guid>
      <dc:creator>DaleBridgford</dc:creator>
      <dc:date>2010-12-13T13:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517691#M13948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks for the suggestion, Jeff.&amp;nbsp; I will attempt to see if that works now.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, I still seem to be unable to have the button invoke my code.&amp;nbsp; From my original code post above, I commented all of the code in the Protected Overrides Sub and just threw in a messagebox statement.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the XML for the Add-In, if that might give any insight.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any suggestions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dale&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;ESRI.Configuration xmlns="http://schemas.esri.com/Desktop/AddIns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&amp;gt;
&amp;nbsp; &amp;lt;Name&amp;gt;ERMDTools&amp;lt;/Name&amp;gt;
&amp;nbsp; &amp;lt;AddInID&amp;gt;{eb6ba448-f56d-4ac4-9ba8-1ae452fb5519}&amp;lt;/AddInID&amp;gt;
&amp;nbsp; &amp;lt;Description&amp;gt;Conversion of my VBA tools to add coordinates to tables and such.&amp;lt;/Description&amp;gt;
&amp;nbsp; &amp;lt;Version&amp;gt;1.0&amp;lt;/Version&amp;gt;
&amp;nbsp; &amp;lt;Image&amp;gt;Images\ERMDTools.png&amp;lt;/Image&amp;gt;
&amp;nbsp; &amp;lt;Author&amp;gt;Dale R. Bridgford&amp;lt;/Author&amp;gt;
&amp;nbsp; &amp;lt;Company&amp;gt;SOM&amp;lt;/Company&amp;gt;
&amp;nbsp; &amp;lt;Date&amp;gt;12/13/2010&amp;lt;/Date&amp;gt;
&amp;nbsp; &amp;lt;Targets&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Target name="Desktop" version="10.0" /&amp;gt;
&amp;nbsp; &amp;lt;/Targets&amp;gt;
&amp;nbsp; &amp;lt;AddIn language="CLR" library="ERMDTools.dll" namespace="ERMDTools"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ArcMap&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Commands&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button id="SOM_ERMDTools_AddPolygonCentroid" class="btnAddPolygonCentroid" message="Adds the X and Y coordinates of each polygon's centroid (center of mass) to the attribute table" caption="Polygon Centroid XY" category="Bridgford Tools" image="Images\AddPolygonCentroid.png" tip="Adds the latitude and longitude of the polygon's centroids"&amp;gt;&amp;lt;/Button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button id="SOM_ERMDTools_AddPolyLineCentroid" class="btnAddPolyLineCentroid" message="Adds the X and Y coordinates of each polyline's centroid (center of mass) to the attribute table." caption="Polyline Centroid XY" category="Bridgford Tools" image="Images\AddPolyLineCentroid.png" tip="Adds the latitude and longitude of the polyline's centroid."&amp;gt;&amp;lt;/Button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button id="SOM_ERMDTools_AddXY" class="btnAddXY" message="Adds the XY coordinates of the point to the attribute table." caption="Point XY" category="Add-In Controls" tip="Adds XYs to the Attribute Table" image="Images\AddXY.png"&amp;gt;&amp;lt;/Button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button id="SOM_ERMDTools_AddXYZ" class="btnAddXYZ" message="Adds XYZ of DataFrame and XY of feature" category="ERMDTools" caption="Add XYZ and XY" tip="Populates attribute table with XYZ of dataframe and xy of feature so you get two sets of coordinates for the price of one." image="Images\AddXYZ.png"&amp;gt;&amp;lt;/Button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button id="SOM_ERMDTools_AddHyperlink" class="btnAddHyperlink" message="Creates Hyperlink to ERMD's WDS Webpage." caption="Add Hyperlink" category="Add-In Controls" tip="Generates a Hyperlink based upon data in attribute tables and places hyperlink in attribute table" image="Images\AddHyperlink.png"&amp;gt;&amp;lt;/Button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Commands&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Toolbars&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Toolbar id="SOM_ERMDTools_ERMD_Tools" caption="ERMD Tools" showInitially="true"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Items&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button refID="SOM_ERMDTools_AddHyperlink" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button refID="SOM_ERMDTools_AddXY" separator="true" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button refID="SOM_ERMDTools_AddXYZ" separator="true" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button refID="SOM_ERMDTools_AddPolyLineCentroid" separator="true" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button refID="SOM_ERMDTools_AddPolygonCentroid" separator="true" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Items&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Toolbar&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Toolbars&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ArcMap&amp;gt;
&amp;nbsp; &amp;lt;/AddIn&amp;gt;
&amp;lt;/ESRI.Configuration&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:34:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517691#M13948</guid>
      <dc:creator>DaleBridgford</dc:creator>
      <dc:date>2021-12-11T22:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517692#M13949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't see anything obviously wrong in your Config.esriaddinx code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There have been other posts here indicating some problems relating to project builds in Visual Studio not updating the Add-in. I have not experienced that problem, but it might be worth a shot for you to clear the Add-in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Delete the folder with the GUID name that is the same as the AddInID in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;XP:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c:\Documents and Settings\&amp;lt;username&amp;gt;\My Documents\ArcGIS\AddIns\Desktop10.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Win7/Vista:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Users\&amp;lt;username&amp;gt;\Documents\ArcGIS\AddIns\Desktop10.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do a Rebuild solution and the start debugging to test the Add-In.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that doesn't fix it, try starting a new test Add-In that only has a single button and toolbar, and just the message box in the button click. So let the wizard create all the code except the one line for the message box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 16:53:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517692#M13949</guid>
      <dc:creator>JeffreyHamblin</dc:creator>
      <dc:date>2010-12-13T16:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517693#M13950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;If that doesn't fix it, try starting a new test Add-In that only has a single button and toolbar, and just the message box in the button click. So let the wizard create all the code except the one line for the message box.&lt;BR /&gt;&lt;BR /&gt;-Jeff&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the suggestions.&amp;nbsp; I ended up deleting everything as suggested and recompiled to try again.&amp;nbsp; It continued to give me a hollow red circle with a yellow triangle at breakpoints I inserted into the code and when I hover over the breakpoint, it states that "The breakpoint will not currently be hit. No symbols have been loaded for this document."&amp;nbsp; This has been consistent throughout this project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then created a new project consisting of one button and no tool bar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The entire code in Button1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public Class Button1
&amp;nbsp; Inherits ESRI.ArcGIS.Desktop.AddIns.Button

&amp;nbsp; Public Sub New()

&amp;nbsp; End Sub

&amp;nbsp; Protected Overrides Sub OnClick()
&amp;nbsp;&amp;nbsp;&amp;nbsp; '
&amp;nbsp;&amp;nbsp;&amp;nbsp; '&amp;nbsp; TODO: Sample code showing how to access button host
&amp;nbsp;&amp;nbsp;&amp;nbsp; '
&amp;nbsp;&amp;nbsp;&amp;nbsp; My.ArcMap.Application.CurrentTool = Nothing
&amp;nbsp; End Sub

&amp;nbsp; Protected Overrides Sub OnUpdate()
&amp;nbsp;&amp;nbsp;&amp;nbsp; Enabled = My.ArcMap.Application IsNot Nothing
&amp;nbsp; End Sub
End Class&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where the TODO is in the commented area is where I placed the messagebox code (after I uncommented it).&amp;nbsp; Compiling and running again gave me the hollow red circle with the yellow exclamation mark.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is frustrating since the way the add-in has been presented makes it an appealing way to distribute functionality.&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;Dale&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:34:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517693#M13950</guid>
      <dc:creator>DaleBridgford</dc:creator>
      <dc:date>2021-12-11T22:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517694#M13951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't run into any of the problems you describe, although I am using Visual Studio C# 2008 Express. It has worked seemlessly for me and is easy as billed. I understand your frustration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My best guess is that either the SDK installer did not properly configure the SDK for use with your VS installation, or you are doing something unusual when creating the project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on a tutorial for VBA to Add-in conversions. It is for C# instead of VB.NET, but you might want to look at Parts 3 and 4 to see if you're doing anything differently.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gis.qtools.com/blog/tutorials/vba-to-c-add-in/part-3-setting-up-visual-studio/"&gt;http://gis.qtools.com/blog/tutorials/vba-to-c-add-in/part-3-setting-up-visual-studio/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unless someone else posts a better solution, I think the next step would be to uninstall the ArcObjects SDK, then reinstall. If that doesn't work, uninstall/reinstall both the SDK and Visual Studio.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 18:46:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517694#M13951</guid>
      <dc:creator>JeffreyHamblin</dc:creator>
      <dc:date>2010-12-13T18:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517695#M13952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried all Jeff's suggestions but still have the some hollow red circle as Dale. In other Visual Studio forums I've found that the error we get seems to be generated by the lack of a .pdb file in the Debug folder, but actually I have this file in my folder. Probably the only thing to do is trying to reinstall the SDK again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dale, if you find a solution, please share it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Elisa&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 19:11:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517695#M13952</guid>
      <dc:creator>elisapuccioni</dc:creator>
      <dc:date>2010-12-13T19:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517696#M13953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jeff.&amp;nbsp; I will have a look at your tutorial and see if that sparks any ideas.&amp;nbsp; This morning, I installed SP1 for ArcMap and the ArcObjects SDK.&amp;nbsp; Same problems, new versions.&amp;nbsp; BTW, I am using the Express versions of both VB and C# (2008).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can follow VB and have looked at C# and get the basic gist of the syntax, but I don't know if I want to expend the time to try and translate the VB to C#.&amp;nbsp; Is the help documentation and intellisense better for C#?&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;Dale&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 19:11:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517696#M13953</guid>
      <dc:creator>DaleBridgford</dc:creator>
      <dc:date>2010-12-13T19:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517697#M13954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dale,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One other quick thing to check. If you build your test project that displays a message box, then close Visual Studio and launch ArcMap 10 alone, does your button display the message box?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm just wondering if some debugger settings in VS are getting in the way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 19:48:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517697#M13954</guid>
      <dc:creator>JeffreyHamblin</dc:creator>
      <dc:date>2010-12-13T19:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517698#M13955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't used add-ins hardly at all, but I did have trouble getting ESRI stuff to run my commands right when they were in a namespace. Can you try and remove the namespacing at least to test?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case I managed to retain the namespacing by decorating my classes with &amp;lt;ProgId("ProjectName.CommandName")&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 03:56:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517698#M13955</guid>
      <dc:creator>AnnaForrest</dc:creator>
      <dc:date>2010-12-14T03:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517699#M13956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, if it makes you all feel any better, I just started having the same problem with one of my projects! Buttons gray out when clicked and nothing happens... It had been working fine for over a month. I didn't make any changes to it.&amp;nbsp;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using Visual Studio C# 2008 Express.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doesn't matter whether I'm debugging or running ArcMap outside a debug session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, a different project still works, both debugging and not. So it's not a global problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried deleting the Add-In manually from:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Users\&amp;lt;username&amp;gt;\Documents\ArcGIS\AddIns\Desktop10.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And deleting the assembly cache from:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\Users\&amp;lt;username&amp;gt;\AppData\Local\ESRI\Desktop10.0\AssemblyCache\&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(note: you have to set folder options to display hidden protected operating system files)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I even tried code-signing the Add-In.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Didn't fix it... grrrr. I have a deadline tomorrow and this is not good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 19:38:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517699#M13956</guid>
      <dc:creator>JeffreyHamblin</dc:creator>
      <dc:date>2010-12-14T19:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517700#M13957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oddly, I just finally got my code to crash.&amp;nbsp; Based on one of the examples I had seen in the past, I put a Namespace - End Namespace around my code.&amp;nbsp; I built a "Hello World" button and it successfully ran.&amp;nbsp; I noted that it did not put Namespace in any of the wizard generated code, so I took the reference out.&amp;nbsp; Upon recompiling, as Arc launched, the Breakpoint went hollow, but when I pressed the button on the toolbar, it fired the code and went to the refilled in breakpoint.&amp;nbsp; It immediately crashed on the second line of my code, but its the first sign of progress I have had in over a month of dinking around with this stuff.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does your code have use Namespace, or is that not an issue in C#?&amp;nbsp; Hope you can figure it out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dale&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 19:52:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517700#M13957</guid>
      <dc:creator>DaleBridgford</dc:creator>
      <dc:date>2010-12-14T19:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517701#M13958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't had need to create an add-in yet but just a quick question.&amp;nbsp; When you compile your add-in, is Visual Studio creating the project output in one location (i.e. the Debug directory under your project directory) and then the output is copied to a location where ArcGIS expects to find it (i.e. the Add-ins directory)?&amp;nbsp; If so, have you tried modifying your Visual Studio project properties to create the project output directly in the ArcGIS Add-ins directory?&amp;nbsp; One thing that could be happening is Visual Studio is creating registry entries for your classes each time the project is compiled and then ArcGIS is doing the same thing when it finds your add-in assemblies.&amp;nbsp; This causes confusion because the system has entries in the registry for the same classes in two separate locations.&amp;nbsp; If this is indeed what is happening, then the only way I know to rectify the situation is to delete all of the class entries in the registry, which can be tricky to say the least.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 20:06:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517701#M13958</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2010-12-14T20:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517702#M13959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the replies, Neil and Dale,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing I found is that I can install an older version of the same Add-In from its .esriAddIn file -- and it works fine. And it has the same AddInID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So something is getting munged on a per Add-In basis.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The compiled Add-In does end up in three locations: debug, release, and the ESRI Add-Ins folder. So I will see if I can find any duplicate registry entries...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 20:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517702#M13959</guid>
      <dc:creator>JeffreyHamblin</dc:creator>
      <dc:date>2010-12-14T20:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in; Failure to get code to execute when toolbar button pressed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517703#M13960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have never used visual studio express but in visual studio, under tools, there is an attach to process option.&amp;nbsp; If you start ArcMap, from the start menu, in vs, you can attach to the arcmap process.&amp;nbsp; As long as the dll loaded (in addins folder) is compiled in debug mode and the debug metadata is there (.pdb), you should be able to at least debug the code.&amp;nbsp; It is possible your code is running, failing, not handling the exceptions and it looks like the code didn't run at all.&amp;nbsp; Could also explain why some code runs and some other doesn't.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 22:00:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-failure-to-get-code-to-execute-when-toolbar/m-p/517703#M13960</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2010-12-14T22:00:35Z</dc:date>
    </item>
  </channel>
</rss>

