<?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 OnLoad fails to execute when opening MXD from command line in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731473#M19478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That doesn't help because it's for Add-in buttons and tools.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Feb 2014 18:59:23 GMT</pubDate>
    <dc:creator>jgers</dc:creator>
    <dc:date>2014-02-04T18:59:23Z</dc:date>
    <item>
      <title>Add-in OnLoad fails to execute when opening MXD from command line</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731467#M19472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OnLoad is supposed to be called when opening a document with a persisted stream. But, when I try loading the MXD from the command line&amp;nbsp; (ie. arcmap.exe somemapdoc.mxd), OnLoad never executes in my Add-in.&amp;nbsp; Is there a work around for this issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 23:16:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731467#M19472</guid>
      <dc:creator>jgers</dc:creator>
      <dc:date>2014-02-02T23:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in OnLoad fails to execute when opening MXD from command line</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731468#M19473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK obvious first question to ask: does the addin extension onLoad run when you open ArcMap and then your MXD?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 18:17:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731468#M19473</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2014-02-03T18:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in OnLoad fails to execute when opening MXD from command line</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731469#M19474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did your add-in previously save information in this map document?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In other words was OnSave called and you added data and then saved the mxd?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not used this before for add-ins but have some experience with classic IExtension objects.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 18:26:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731469#M19474</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2014-02-03T18:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in OnLoad fails to execute when opening MXD from command line</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731470#M19475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;OK obvious first question to ask: does the addin extension onLoad run when you open ArcMap and then your MXD?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, OnLoad does run if you open the mxd that way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 21:42:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731470#M19475</guid>
      <dc:creator>jgers</dc:creator>
      <dc:date>2014-02-03T21:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in OnLoad fails to execute when opening MXD from command line</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731471#M19476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Did your add-in previously save information in this map document?&lt;BR /&gt;&lt;BR /&gt;In other words was OnSave called and you added data and then saved the mxd?&lt;BR /&gt;&lt;BR /&gt;I have not used this before for add-ins but have some experience with classic IExtension objects.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, the data is saved into the mxd with OnSave.&amp;nbsp; I am able to read it back(OnLoad executes) if I load the mxd from an already open session of ArcMap.&amp;nbsp;&amp;nbsp; This issue only occurs if the mxd is loaded through the command line.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 21:47:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731471#M19476</guid>
      <dc:creator>jgers</dc:creator>
      <dc:date>2014-02-03T21:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in OnLoad fails to execute when opening MXD from command line</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731472#M19477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/Advanced_add_in_concepts/0001000004n7000000/"&gt;http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/Advanced_add_in_concepts/0001000004n7000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Delay loading&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By default, the assemblies associated with add-in buttons and tools are not loaded until the corresponding item on a toolbar or menu is clicked by the user. This behavior helps conserve application memory and other resources. Since the enabled state of an add-in button or tool is controlled by the OnUpdate method within code, the button or tool will initially appear enabled. If you need tighter control over the initial enabled state of a button or tool, you need to override the default behavior and force the item to load at startup by setting the onDemand Extensible Markup Language (XML) attribute to false.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 14:23:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731472#M19477</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2014-02-04T14:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in OnLoad fails to execute when opening MXD from command line</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731473#M19478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That doesn't help because it's for Add-in buttons and tools.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 18:59:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731473#M19478</guid>
      <dc:creator>jgers</dc:creator>
      <dc:date>2014-02-04T18:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in OnLoad fails to execute when opening MXD from command line</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731474#M19479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, what kind of Add-in do you have?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 20:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731474#M19479</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2014-02-04T20:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in OnLoad fails to execute when opening MXD from command line</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731475#M19480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am beginning to think this is a bug.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 01:36:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731475#M19480</guid>
      <dc:creator>jgers</dc:creator>
      <dc:date>2014-02-05T01:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in OnLoad fails to execute when opening MXD from command line</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731476#M19481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This may or may not be related... but I've seen issues with Add-ins loading and events firing when ArcMap is launched through some indirect means (e.g. by another application, by command prompt, etc.).&amp;nbsp; It boiled down to security constraints defined in local and domain group policies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not clear if yours is the same kind problem, but just thought I'd throw this info out there in case it can get you looking in the right area.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 17:56:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731476#M19481</guid>
      <dc:creator>ErinBrimhall</dc:creator>
      <dc:date>2014-02-05T17:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in OnLoad fails to execute when opening MXD from command line</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731477#M19482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I forgot to mention that this also occurs through shell execute.&amp;nbsp; ie. double click the mxd to launch ArcMap.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 19:10:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731477#M19482</guid>
      <dc:creator>jgers</dc:creator>
      <dc:date>2014-02-05T19:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in OnLoad fails to execute when opening MXD from command line</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731478#M19483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had problems with OnLoad not executing when double clicking the mxd.&amp;nbsp; Then I went to the config file and set the autoLoad attribute to true on the Extension element (default is false).&amp;nbsp; I also found this was the case in ESRI's sample solution, but it is not mentioned anywhere when you view the sample code in the browser.&amp;nbsp; There are a couple of bugs in the sample code as well (null references - really?).&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 19:00:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-onload-fails-to-execute-when-opening-mxd/m-p/731478#M19483</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2014-07-21T19:00:49Z</dc:date>
    </item>
  </channel>
</rss>

