<?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: C# Run a function in ArcMap everytime A Map Document is Openend/Loaded in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/c-run-a-function-in-arcmap-everytime-a-map/m-p/382287#M10125</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your input. Having trouble finding that exact title (still new to the site), but I did a search on it and some items have come up. Thanks again. I will take a look and continue researching&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Sep 2014 16:09:30 GMT</pubDate>
    <dc:creator>JamariPowers</dc:creator>
    <dc:date>2014-09-29T16:09:30Z</dc:date>
    <item>
      <title>C# Run a function in ArcMap everytime A Map Document is Openend/Loaded</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/c-run-a-function-in-arcmap-everytime-a-map/m-p/382284#M10122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working with ArcObjects and C#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having trouble figuring out a starting point to my issue. I have an add-in written in C# that I will be adding to. The add-in is always running. One of the functions that I will need to include is some kind of check or message box or some kind of indicator that runs every time a map document is opened/loaded into ArcMap. Every time this happens, it would be nice to just get a message box to display saying,..."Map Loaded".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can make it more complex later on, but for simplistic terms, I'm just stuck on how to run this message box every time a map document is opened or loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this topic would be greatly appreciated. Thanks in advance for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 15:11:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/c-run-a-function-in-arcmap-everytime-a-map/m-p/382284#M10122</guid>
      <dc:creator>JamariPowers</dc:creator>
      <dc:date>2014-09-29T15:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: C# Run a function in ArcMap everytime A Map Document is Openend/Loaded</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/c-run-a-function-in-arcmap-everytime-a-map/m-p/382285#M10123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've moved your post into the &lt;A href="https://community.esri.com/space/2143"&gt;ArcObjects SDK&lt;/A&gt; space. You will get a much better answer here as the &lt;A _jive_internal="true" class="jivecontainerTT-hover-container jive-link-community-small" data-containerid="1" data-containertype="14" data-objectid="2004" data-objecttype="14" href="https://community.esri.com/community/help-and-feedback"&gt;GeoNet Help&lt;/A&gt; is intended for community help and feedback. You can see more on the community structure, and what topics are under each space from the following documents:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2004" data-containertype="14" data-objectid="1544" data-objecttype="102" href="https://community.esri.com/docs/DOC-1544"&gt;GeoNet Community Structure&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2004" data-containertype="14" data-objectid="1545" data-objecttype="102" href="https://community.esri.com/docs/DOC-1545"&gt;ArcGIS Discussion Forums Migration Strategy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Timothy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 15:13:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/c-run-a-function-in-arcmap-everytime-a-map/m-p/382285#M10123</guid>
      <dc:creator>TimothyHales</dc:creator>
      <dc:date>2014-09-29T15:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: C# Run a function in ArcMap everytime A Map Document is Openend/Loaded</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/c-run-a-function-in-arcmap-everytime-a-map/m-p/382286#M10124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you are asking about the &lt;STRONG&gt;IDocumentEvents&lt;/STRONG&gt; interface? This has an on &lt;EM&gt;openDocument&lt;/EM&gt; listener. Have a look at the snippet section of the SDK help for the snippet &lt;EM&gt;Add Event Wiring for New and Open Documents Snippet.&lt;/EM&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 15:38:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/c-run-a-function-in-arcmap-everytime-a-map/m-p/382286#M10124</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2014-09-29T15:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: C# Run a function in ArcMap everytime A Map Document is Openend/Loaded</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/c-run-a-function-in-arcmap-everytime-a-map/m-p/382287#M10125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your input. Having trouble finding that exact title (still new to the site), but I did a search on it and some items have come up. Thanks again. I will take a look and continue researching&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 16:09:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/c-run-a-function-in-arcmap-everytime-a-map/m-p/382287#M10125</guid>
      <dc:creator>JamariPowers</dc:creator>
      <dc:date>2014-09-29T16:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: C# Run a function in ArcMap everytime A Map Document is Openend/Loaded</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/c-run-a-function-in-arcmap-everytime-a-map/m-p/382288#M10126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for moving my discussion. Sorry about posting in the wrong area. Still learning the forums.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 16:10:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/c-run-a-function-in-arcmap-everytime-a-map/m-p/382288#M10126</guid>
      <dc:creator>JamariPowers</dc:creator>
      <dc:date>2014-09-29T16:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: C# Run a function in ArcMap everytime A Map Document is Openend/Loaded</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/c-run-a-function-in-arcmap-everytime-a-map/m-p/382289#M10127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend using an Extension Addin if you haven't already done this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Extension_Members/001v000001p9000000/" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Extension_Members/001v000001p9000000/"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The extension addin will give you access to the OnLoad()/OnStartup() functions which would satisfy what you're looking for. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you already have an existing addin that you'd like to hook into as well, you can create some static methods/wrappers to utilize it. Basically the extension would function as the event listener, and the existing addin would remain as normal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps (assuming you haven't solved the issue already)!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 14:22:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/c-run-a-function-in-arcmap-everytime-a-map/m-p/382289#M10127</guid>
      <dc:creator>CodyScott</dc:creator>
      <dc:date>2014-10-30T14:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: C# Run a function in ArcMap everytime A Map Document is Openend/Loaded</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/c-run-a-function-in-arcmap-everytime-a-map/m-p/382290#M10128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this is what I was looking for. I have indeed changed it to an Extension AddIn. In my extension I was able to utilize the OnStartup, On_OpenDocument, and On_NewDocument. With these functions (with the help of Wired Document Events), I am able to run specific functions on these events. Thanks for your assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 22:09:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/c-run-a-function-in-arcmap-everytime-a-map/m-p/382290#M10128</guid>
      <dc:creator>JamariPowers</dc:creator>
      <dc:date>2014-11-05T22:09:25Z</dc:date>
    </item>
  </channel>
</rss>

