<?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: Module overrides are not being called in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/module-overrides-are-not-being-called/m-p/1123433#M7429</link>
    <description>&lt;P&gt;With 2.9 SDK running 2.9 desktop I&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;added a new Addin Module,&lt;/LI&gt;&lt;LI&gt;added an override for Initialize in Module1.cs&lt;/LI&gt;&lt;LI&gt;Changed autoLoad=true in the Config.daml&lt;/LI&gt;&lt;LI&gt;set a breakpoint in the Intialize() override&lt;/LI&gt;&lt;LI&gt;Run Pro from VS in debug mode&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;When pro started it hit my break point.&lt;/P&gt;&lt;P&gt;If you do these steps (with a new module) and get different results, I suspect it might have something to do with running 2.9 SDK with 2.8 desktop. (I've always wondered how compatible this is).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Dec 2021 17:35:28 GMT</pubDate>
    <dc:creator>KirkKuykendall1</dc:creator>
    <dc:date>2021-12-07T17:35:28Z</dc:date>
    <item>
      <title>Module overrides are not being called</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/module-overrides-are-not-being-called/m-p/1123331#M7428</link>
      <description>&lt;P&gt;Darren Andariese -&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcGis Pro version 2.8.3, SDK 2.9 for .Net&lt;/P&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I'm having an issue with my Add-In for ArcGis Pro. I'm trying to override the Initialize method in the Module Class (Which my module is inherited from) and the Initialize method is not being called. I want to add some event handlers to warn users when they attempt to open a project using the Open command in ArcGis Pro Desktop. I want user to use my Add-In to open thier project. I want my module to initialize these events when ArcGis Pro opens. In my DAML, I set, autoLoad="true". But my overridden Initialize method is never being run (Confirmed when running in debug). Below is some of my code from the DAML and my module class:&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;DAML:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ArcGIS defaultAssembly="GraphicsFireDeskAddInPro.dll" defaultNamespace="GraphicsFireDeskAddInPro" xmlns="&lt;A href="http://schemas.esri.com/DADF/Registry" target="_blank"&gt;http://schemas.esri.com/DADF/Registry&lt;/A&gt;" xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xsi:schemaLocation="&lt;A href="http://schemas.esri.com/DADF/Registry" target="_blank"&gt;http://schemas.esri.com/DADF/Registry&lt;/A&gt; file:///C:/Program%20Files/ArcGIS/Pro/bin/ArcGIS.Desktop.Framework.xsd"&amp;gt;&lt;BR /&gt;&amp;lt;AddInInfo id="{1634e85e-8fa3-4db6-958c-b2e5f3ed133e}" version="1.0" desktopVersion="2.8.3"&amp;gt;&lt;BR /&gt;&amp;lt;Name&amp;gt;GraphicsFireDeskAddInPro&amp;lt;/Name&amp;gt;&lt;BR /&gt;&amp;lt;Description&amp;gt;GraphicsFireDeskAddInPro description&amp;lt;/Description&amp;gt;&lt;BR /&gt;&amp;lt;Image&amp;gt;Images\AddinDesktop32.png&amp;lt;/Image&amp;gt;&lt;BR /&gt;&amp;lt;Author&amp;gt;andariesed&amp;lt;/Author&amp;gt;&lt;BR /&gt;&amp;lt;Company&amp;gt;Acme&amp;lt;/Company&amp;gt;&lt;BR /&gt;&amp;lt;Date&amp;gt;4/5/2021 7:37:53 AM&amp;lt;/Date&amp;gt;&lt;BR /&gt;&amp;lt;Subject&amp;gt;Framework&amp;lt;/Subject&amp;gt;&lt;BR /&gt;&amp;lt;!-- Note subject can be one or more of these topics:&lt;BR /&gt;Content, Framework, Editing, Geodatabase, Geometry, Geoprocessing, Layouts, Map Authoring, Map Exploration --&amp;gt;&lt;BR /&gt;&amp;lt;/AddInInfo&amp;gt;&lt;BR /&gt;&amp;lt;modules&amp;gt;&lt;BR /&gt;&amp;lt;insertModule id="GraphicsFireDeskAddInPro_Module" className="GFDC_Module" autoLoad="true" caption="Graphics Fire Desk Configuration" &amp;gt;&lt;BR /&gt;&amp;lt;!-- uncomment to have the control hosted on a separate tab--&amp;gt;&lt;BR /&gt;&amp;lt;tabs&amp;gt;&lt;BR /&gt;&amp;lt;tab id="GraphicsFireDeskAddInPro_Tab1" caption="Graphics Fire Desk" &amp;gt;&lt;BR /&gt;&amp;lt;group refID="GraphicsFireDeskAddInPro_Group1" /&amp;gt;&lt;BR /&gt;&amp;lt;group refID="GraphicsFireDeskAddInPro_Group2" /&amp;gt;&lt;BR /&gt;&amp;lt;group refID="GraphicsFireDeskAddInPro_Group3" /&amp;gt;&lt;BR /&gt;&amp;lt;/tab&amp;gt;&lt;BR /&gt;&amp;lt;/tabs&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Module:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;using ArcGIS.Desktop.Framework;&lt;BR /&gt;using ArcGIS.Desktop.Framework.Contracts;&lt;BR /&gt;using Rfmss.GraphicsFireDeskAddInPro.Scripts.ViewModel.Extension;&lt;BR /&gt;using Rfmss.GraphicsFireDeskAddinPro.Scripts.View.Login;&lt;BR /&gt;using Rfmss.GraphicsFireDeskAddInPro.Scripts.Utility;&lt;BR /&gt;using Rfmss.GraphicsFireDeskAddInPro.Scripts.ViewModel.Error;&lt;BR /&gt;using System.Windows.Input;&lt;BR /&gt;using Rfmss.GraphicsFireDeskAddinPro.Scripts.View.Error;&lt;BR /&gt;using Rfmss.GraphicsFireDeskAddinPro.Scripts.View.Background;&lt;BR /&gt;using Rfmss.Core.Logging;&lt;BR /&gt;using Rfmss.GraphicsFireDeskAddinPro.Scripts.ViewModel.ManageRgl;&lt;BR /&gt;using Rfmss.GraphicsFireDeskAddinPro.Scripts.Utility;&lt;/P&gt;&lt;P&gt;namespace Rfmss.GraphicsFireDeskAddInPro&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;internal class GFDC_Module : Module&lt;BR /&gt;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private static GFDC_Module _this = null;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;/// &amp;lt;summary&amp;gt;&lt;BR /&gt;/// Retrieve the singleton instance to this module here&lt;BR /&gt;/// &amp;lt;/summary&amp;gt;&lt;BR /&gt;public static GFDC_Module Current&lt;BR /&gt;{&lt;BR /&gt;get&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return _this ?? ( _this = ( GFDC_Module )FrameworkApplication.FindModule(&amp;nbsp; &amp;nbsp; &amp;nbsp;"GraphicsFireDeskAddInPro_Module" ) );&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;protected override bool Initialize()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;return base.Initialize();&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 14:20:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/module-overrides-are-not-being-called/m-p/1123331#M7428</guid>
      <dc:creator>DarrenAndariese</dc:creator>
      <dc:date>2021-12-07T14:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Module overrides are not being called</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/module-overrides-are-not-being-called/m-p/1123433#M7429</link>
      <description>&lt;P&gt;With 2.9 SDK running 2.9 desktop I&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;added a new Addin Module,&lt;/LI&gt;&lt;LI&gt;added an override for Initialize in Module1.cs&lt;/LI&gt;&lt;LI&gt;Changed autoLoad=true in the Config.daml&lt;/LI&gt;&lt;LI&gt;set a breakpoint in the Intialize() override&lt;/LI&gt;&lt;LI&gt;Run Pro from VS in debug mode&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;When pro started it hit my break point.&lt;/P&gt;&lt;P&gt;If you do these steps (with a new module) and get different results, I suspect it might have something to do with running 2.9 SDK with 2.8 desktop. (I've always wondered how compatible this is).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 17:35:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/module-overrides-are-not-being-called/m-p/1123433#M7429</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-12-07T17:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Module overrides are not being called</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/module-overrides-are-not-being-called/m-p/1123511#M7435</link>
      <description>&lt;P&gt;I tested it too and it works.&amp;nbsp; Looking at your daml it seems to me that your namespace doesn't match what you're using in your code.&lt;/P&gt;&lt;P&gt;daml:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;defaultNamespace="GraphicsFireDeskAddInPro"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;doesn't match the code's namespace:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;namespace Rfmss.GraphicsFireDeskAddInPro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 19:25:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/module-overrides-are-not-being-called/m-p/1123511#M7435</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-12-07T19:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Module overrides are not being called</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/module-overrides-are-not-being-called/m-p/1125627#M7488</link>
      <description>&lt;P&gt;Actually ... none of the OnPane overrides for Module are being called for me when I switch active panes - Init and OnUpdate are being called though.&amp;nbsp; Using 2.9.0&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 23:00:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/module-overrides-are-not-being-called/m-p/1125627#M7488</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-12-13T23:00:38Z</dc:date>
    </item>
  </channel>
</rss>

