<?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: Execute addin code after opening project in  ArcPro 2.7 in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/execute-addin-code-after-opening-project-in-arcpro/m-p/1049657#M6473</link>
    <description>&lt;P&gt;If I have a proWindow in my add-in how can I cause that prowindow to initialize when the add-in is loaded? right now it only happens ona click of the button.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Apr 2021 16:31:04 GMT</pubDate>
    <dc:creator>JamalWest2</dc:creator>
    <dc:date>2021-04-21T16:31:04Z</dc:date>
    <item>
      <title>Execute addin code after opening project in  ArcPro 2.7</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/execute-addin-code-after-opening-project-in-arcpro/m-p/1025105#M6153</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to execute my addin code after opening project in arcpro. I've config file which stores project related data. Now whenever I open project I need to activate addin and execute code to retrieve config file, to avoid this behavior I would like to execute some code by default on opening project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated,&lt;/P&gt;&lt;P&gt;-Prashant&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 23:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/execute-addin-code-after-opening-project-in-arcpro/m-p/1025105#M6153</guid>
      <dc:creator>PrashantKirpan</dc:creator>
      <dc:date>2021-02-09T23:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Execute addin code after opening project in  ArcPro 2.7</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/execute-addin-code-after-opening-project-in-arcpro/m-p/1025109#M6154</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/248210"&gt;@PrashantKirpan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P data-unlink="true"&gt;It sounds like once our addin is installed, we just want it to execute code in response to the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/index.html#topic9319.html" target="_self"&gt;ProjectOpened&lt;/A&gt; event. You can find an example of subscribing to this event to execute code when a project is opened in the &lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Framework/BackStage_PropertyPage/Module1.cs" target="_self"&gt;BackStage_PropertyPage&lt;/A&gt; community sample.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Hope that helps!&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 00:21:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/execute-addin-code-after-opening-project-in-arcpro/m-p/1025109#M6154</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-02-10T00:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Execute addin code after opening project in  ArcPro 2.7</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/execute-addin-code-after-opening-project-in-arcpro/m-p/1025143#M6155</link>
      <description>&lt;P&gt;Thank you JamesBrander, perfectly working for me.&lt;/P&gt;&lt;P&gt;-Prashant&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 04:56:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/execute-addin-code-after-opening-project-in-arcpro/m-p/1025143#M6155</guid>
      <dc:creator>PrashantKirpan</dc:creator>
      <dc:date>2021-02-10T04:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Execute addin code after opening project in  ArcPro 2.7</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/execute-addin-code-after-opening-project-in-arcpro/m-p/1025573#M6162</link>
      <description>&lt;P&gt;It seems that you got your add-in to work, but I just wanted to point out that by default add-ins are 'Just-in-time' (JIT) loaded, meaning they are not loaded and running until you interact through the UI with your add-in.&amp;nbsp; If you want your add-in to work from startup (i.e. in order to listen to a project open/close event) you have to change the JIT default behavior by turning the 'autoload' (in config.daml) to true.&amp;nbsp; You can find more documentation here:&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Framework#jit-loading" target="_blank"&gt;ProConcepts Framework · Esri/arcgis-pro-sdk Wiki (github.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 21:02:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/execute-addin-code-after-opening-project-in-arcpro/m-p/1025573#M6162</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-02-10T21:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Execute addin code after opening project in  ArcPro 2.7</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/execute-addin-code-after-opening-project-in-arcpro/m-p/1049657#M6473</link>
      <description>&lt;P&gt;If I have a proWindow in my add-in how can I cause that prowindow to initialize when the add-in is loaded? right now it only happens ona click of the button.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 16:31:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/execute-addin-code-after-opening-project-in-arcpro/m-p/1049657#M6473</guid>
      <dc:creator>JamalWest2</dc:creator>
      <dc:date>2021-04-21T16:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Execute addin code after opening project in  ArcPro 2.7</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/execute-addin-code-after-opening-project-in-arcpro/m-p/1049766#M6475</link>
      <description>&lt;P&gt;Usually you would not initialize a ProWindow before the class is instantiated, which happens when the ProWindow&amp;nbsp; needs to open.&amp;nbsp; I would recommend to move any initialization code into the Module class and make it accessible through an internal (or public) property in the Module class as in this example:&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Framework/ProWindowMVVM/Module1.cs" target="_self"&gt;Framework - ProWindowMVVM Community Sample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 19:07:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/execute-addin-code-after-opening-project-in-arcpro/m-p/1049766#M6475</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-04-21T19:07:26Z</dc:date>
    </item>
  </channel>
</rss>

