<?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 to catch (programmatically) an event when an Add-In has finished loading in ArcMap in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186668#M4858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Duncan,&lt;/P&gt;&lt;P&gt;There's no definitive page for the xml schema unfortunately. You can glean a few things from the &lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/Building_add_ins_for_ArcGIS_for_Desktop/0001000000w2000000/"&gt;help pages&lt;/A&gt;, intellisense in Visual studio or trial and error. The xml reflects the initial choices from the new items wizard when creating the add-in controls.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2019 16:39:01 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2019-01-15T16:39:01Z</dc:date>
    <item>
      <title>How to catch (programmatically) an event when an Add-In has finished loading in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186660#M4850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have Add-ins constantly updated by replacing *.esriAddIn files on a network folder.&lt;/P&gt;&lt;P&gt;We know, that every time ArcMap starts, it copies from the network to a local AssemblyCache folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to catch (programmatically) an event when an Add-In has finished loading in ArcMap? To make sure we working not with old but updated version of Add-ins.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2018 23:01:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186660#M4850</guid>
      <dc:creator>MarkMindlin</dc:creator>
      <dc:date>2018-12-20T23:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch (programmatically) an event when an Add-In has finished loading in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186661#M4851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't actually explain what sort of AddIn you have developed so there may be approaches more suited for your needs than others?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's been quite a while since I developed an AddIn.&amp;nbsp; I know extensions can listen out for application level events, I don't known if AddIns have those sort of event listeners.&amp;nbsp; What I have done in the past because my Addin was simply a button that opened up a complex form was to have code that would check the map to see if it had at least one polyline layer, if it did then it would enable the button. This code was in the&amp;nbsp;&lt;EM&gt;Protected Overrides Sub OnUpdate()&lt;/EM&gt; procedure of the Button. You could try putting your version checking code in that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2019 00:08:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186661#M4851</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2019-01-12T00:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch (programmatically) an event when an Add-In has finished loading in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186662#M4852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Duncan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are Add-In buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, we use OnUpdate() method of an AddIn button. What about other Add-in buttons? Are you saying it must be their OnUpdate() method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We only need to confirm that we&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;working not with an old but with an updated version of each Add-in. &lt;BR /&gt;Nothing about a map.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Do you have any link to the official documentation &lt;STRONG&gt;confirming it&lt;/STRONG&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2019 06:41:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186662#M4852</guid>
      <dc:creator>MarkMindlin</dc:creator>
      <dc:date>2019-01-14T06:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch (programmatically) an event when an Add-In has finished loading in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186663#M4853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would try putting your version checking code in anyone of the buttons. I don't think it needs to be in all of them. So as that button checks to see what state it should be in (enabled/disabled) it would also check the version. There is no official documentation, especially if you are already using onUpdate().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2019 09:47:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186663#M4853</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2019-01-14T09:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch (programmatically) an event when an Add-In has finished loading in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186664#M4854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;You have a couple of options, depending on the &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;onDemand&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;flag in your config.&lt;/P&gt;&lt;P&gt;If its not specified or set to true (default), the add-in code isn't loaded until you interact with the control, in which case you can put the version check in the click event or even the add-in constructor.&lt;/P&gt;&lt;P&gt;If you have specified false then the add-in code is loaded when ArcMap starts. You could put the check in the constructor or in the OnUpdate override. Given that OnUpdate is called several times a second, its not an efficient place to put lengthy operations and is normally used for condition or state checks.&lt;/P&gt;&lt;P&gt;Setting OnDemand true in this case seems like an overkill so I would just go with the controls click event.&lt;/P&gt;&lt;P&gt;Where are you reading the version info from?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2019 18:43:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186664#M4854</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-01-14T18:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch (programmatically) an event when an Add-In has finished loading in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186665#M4855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System.Reflection.AssemblyName.GetAssemblyName(path_to_DLL).Version.ToString()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are not sure what event to catch to be sure all Addins loaded last version(we have one network folder with *.esriAddIn files constantly updated)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN style="background-color: #ffffff;"&gt;Setting OnDemand true in this case seems like an overkill so I would just go with the controls click event."&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Should we do artificial click events (we have &amp;gt;10 AddIns, &amp;gt;30 users)?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2019 23:04:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186665#M4855</guid>
      <dc:creator>MarkMindlin</dc:creator>
      <dc:date>2019-01-14T23:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch (programmatically) an event when an Add-In has finished loading in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186666#M4856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah artificial clicks wouldn't be a good solution.&lt;/P&gt;&lt;P&gt;How about listening for the &lt;A href="https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#IApplicationStatusEvents_Initialized.htm"&gt;IApplicationStatusEvents.Initialized&lt;/A&gt; Event?&lt;/P&gt;&lt;P&gt;You would have to set that up in an extension, setting autoload to true. When that fires, all the addin UI components would have been loaded even if the code behind them hasn't. You could do your version checks in there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 00:14:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186666#M4856</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-01-15T00:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch (programmatically) an event when an Add-In has finished loading in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186667#M4857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a page which explains all the config setting options and what they do? I'm wondering if I have missed some golden nugget of information! I don't think I have ever found a page listing what the options are and what the implications are if you set them. I guess I've just not hit on the right search term?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be good if such a page exists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 11:29:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186667#M4857</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2019-01-15T11:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch (programmatically) an event when an Add-In has finished loading in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186668#M4858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Duncan,&lt;/P&gt;&lt;P&gt;There's no definitive page for the xml schema unfortunately. You can glean a few things from the &lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/Building_add_ins_for_ArcGIS_for_Desktop/0001000000w2000000/"&gt;help pages&lt;/A&gt;, intellisense in Visual studio or trial and error. The xml reflects the initial choices from the new items wizard when creating the add-in controls.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 16:39:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186668#M4858</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-01-15T16:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch (programmatically) an event when an Add-In has finished loading in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186669#M4859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exactly&amp;nbsp;what we need. I will test it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 23:07:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186669#M4859</guid>
      <dc:creator>MarkMindlin</dc:creator>
      <dc:date>2019-01-15T23:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch (programmatically) an event when an Add-In has finished loading in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186670#M4860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Duncan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/Advanced_add_in_concepts/0001000004n7000000/" title="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/Advanced_add_in_concepts/0001000004n7000000/"&gt;ArcObjects Help for .NET developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/433415_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 23:09:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-catch-programmatically-an-event-when-an-add/m-p/186670#M4860</guid>
      <dc:creator>MarkMindlin</dc:creator>
      <dc:date>2019-01-15T23:09:29Z</dc:date>
    </item>
  </channel>
</rss>

