<?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: Custom DAML Component Not Registering Kind Of in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/custom-daml-component-not-registering-kind-of/m-p/1173244#M8134</link>
    <description>&lt;P&gt;So as I understand you have three modules?&lt;/P&gt;&lt;P&gt;Then Solution2&amp;nbsp; both modules must have dependencies to Host module. That changes allow predefine module loading order for ArcGIS Pro. Solution A will be loaded first and then Solution B modules in random order&lt;/P&gt;</description>
    <pubDate>Thu, 12 May 2022 11:36:18 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2022-05-12T11:36:18Z</dc:date>
    <item>
      <title>Custom DAML Component Not Registering Kind Of</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/custom-daml-component-not-registering-kind-of/m-p/1173075#M8126</link>
      <description>&lt;P&gt;All, very annoying and thorny problem.&lt;/P&gt;&lt;P&gt;Solution A - I have defined a new DAML category&lt;/P&gt;&lt;P&gt;&amp;lt;insertCategory id="my_special_tool"/&amp;gt;&lt;/P&gt;&lt;P&gt;This solution has an ArcGIS Dockpane which loads in Embeddable Controls using the ContentPresenter pattern.&amp;nbsp; This works quite well.&lt;/P&gt;&lt;P&gt;Solution B - Has 2 projects which contain the embeddable controls (defined as ArcGIS Modules, with Embeddable controls added)&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the categories section in their DAML's I have&lt;/P&gt;&lt;P&gt;&amp;lt;categories&amp;gt;&lt;BR /&gt;&amp;lt;updateCategory refID="my_special_tool"&amp;gt;&lt;BR /&gt;&amp;lt;insertComponent id="Control1" className="Control1ViewModel"&amp;gt;&lt;BR /&gt;&amp;lt;content className="Control1View" displayName="Control1" /&amp;gt;&lt;BR /&gt;&amp;lt;/insertComponent&amp;gt;&lt;BR /&gt;&amp;lt;/updateCategory&amp;gt;&lt;BR /&gt;&amp;lt;/categories&amp;gt;&lt;/P&gt;&lt;P&gt;and the second is&lt;/P&gt;&lt;P&gt;&amp;lt;categories&amp;gt;&lt;BR /&gt;&amp;lt;updateCategory refID="my_special_tool"&amp;gt;&lt;BR /&gt;&amp;lt;insertComponent id="Control2" className="Control2ViewModel"&amp;gt;&lt;BR /&gt;&amp;lt;content className="Control2View" displayName="Control2" /&amp;gt;&lt;BR /&gt;&amp;lt;/insertComponent&amp;gt;&lt;BR /&gt;&amp;lt;/updateCategory&amp;gt;&lt;BR /&gt;&amp;lt;/categories&amp;gt;&lt;/P&gt;&lt;P&gt;I can build both modules and see them get added as addins to the Pro system.&amp;nbsp; When I start Pro and load my dockpane I can issue the call&lt;/P&gt;&lt;P&gt;var cat = Categories.GetComponentElements("my_special_tool")&lt;/P&gt;&lt;P&gt;I used to get both addins (Controls), then suddenly my second addin just stopped working.&amp;nbsp; No matter what I try, deleting the addin cache, rebooting, nothing will enable the second one to be seen.&amp;nbsp; It is almost like Pro, on startup isn't reading the second addin's DAML file (though I can see it's installed).&amp;nbsp; Using the GetComponentCategories, it returns only the 1st solution and not the second.&lt;/P&gt;&lt;P&gt;Any thoughts / options / troubleshooting tips would be much appreciated.&amp;nbsp; I have had this before and I just created a new solution, but surely there must be a better way of dealing with components that just stop loading in Pro.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 22:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/custom-daml-component-not-registering-kind-of/m-p/1173075#M8126</guid>
      <dc:creator>KierenTinning2</dc:creator>
      <dc:date>2022-05-11T22:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom DAML Component Not Registering Kind Of</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/custom-daml-component-not-registering-kind-of/m-p/1173169#M8130</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to specify second module dependencies in daml like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  &amp;lt;dependencies&amp;gt;
    &amp;lt;!-- id of "Add-in First" --&amp;gt;
    &amp;lt;dependency name="{45998990-895f-4d92-bbde-ff70d25adac2}" /&amp;gt;
  &amp;lt;/dependencies&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 May 2022 06:12:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/custom-daml-component-not-registering-kind-of/m-p/1173169#M8130</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-05-12T06:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Custom DAML Component Not Registering Kind Of</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/custom-daml-component-not-registering-kind-of/m-p/1173232#M8131</link>
      <description>&lt;P&gt;I am not sure what you mean?&amp;nbsp; The two components in the second solution are independent of each other (i.e. no dependencies).&amp;nbsp; What I discovered is some of the references in &lt;SPAN&gt;Control2 were broken, I removed them and added in the ArcGIS Pro Extensions nuget, it build just fine.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Otherwise the two DAML's (Control1 and Control2) are the same (aside from class and viewmodel names, etc).&amp;nbsp; What was really bizarre, is it worked for days, then suddenly Pro just stopped registering Control2.&amp;nbsp; I did upgrade my Visual Studio, so it hypothetically could be related to that, but one would have thought both embeddable controls would have broken, not just one of them&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 11:02:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/custom-daml-component-not-registering-kind-of/m-p/1173232#M8131</guid>
      <dc:creator>KierenTinning2</dc:creator>
      <dc:date>2022-05-12T11:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom DAML Component Not Registering Kind Of</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/custom-daml-component-not-registering-kind-of/m-p/1173236#M8132</link>
      <description>&lt;P&gt;It depends on module loading order. If your second module is loaded first, then&amp;nbsp;second module can't find&amp;nbsp;refID="my_special_tool" which I understand is defined in first module. So to access refID's from another module you need to define dependencies.&lt;/P&gt;&lt;P&gt;First module dependency ID you can find in daml line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  &amp;lt;AddInInfo id="{45998990-895f-4d92-bbde-ff70d25adac2}" version="1.134" desktopVersion="2.9.00000"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 11:22:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/custom-daml-component-not-registering-kind-of/m-p/1173236#M8132</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-05-12T11:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom DAML Component Not Registering Kind Of</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/custom-daml-component-not-registering-kind-of/m-p/1173239#M8133</link>
      <description>&lt;P&gt;Ah, my apologies.&amp;nbsp; No, solution 1 is acting as the Host and has the Host control - it is the one that defines the component category.&lt;/P&gt;&lt;P&gt;Solution 2 has two independent modules (embeddable controls) which the Host Control needs to see and be able to load depending on conditions present.&lt;/P&gt;&lt;P&gt;The modules in solution 2 do not need to see each other and have no dependencies between them.&amp;nbsp; It is only solution 1 (Host) which needs to load the addins.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I call&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;var cat = Categories.GetComponentElements("my_special_tool")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;cat should have two (or more entries) for the components which implement that DAML element.&amp;nbsp; It did work, then something broke.&amp;nbsp; So I know it's not inherently wrong, I am trying to trouble shoot why Pro just stopped seeing the one module and attempting to avoid moving it into a new solution which Pro can see and load&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 11:24:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/custom-daml-component-not-registering-kind-of/m-p/1173239#M8133</guid>
      <dc:creator>KierenTinning2</dc:creator>
      <dc:date>2022-05-12T11:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom DAML Component Not Registering Kind Of</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/custom-daml-component-not-registering-kind-of/m-p/1173244#M8134</link>
      <description>&lt;P&gt;So as I understand you have three modules?&lt;/P&gt;&lt;P&gt;Then Solution2&amp;nbsp; both modules must have dependencies to Host module. That changes allow predefine module loading order for ArcGIS Pro. Solution A will be loaded first and then Solution B modules in random order&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 11:36:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/custom-daml-component-not-registering-kind-of/m-p/1173244#M8134</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-05-12T11:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custom DAML Component Not Registering Kind Of</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/custom-daml-component-not-registering-kind-of/m-p/1173248#M8135</link>
      <description>&lt;P&gt;Yes, both sub modules implement the category through &lt;SPAN&gt;&amp;lt;updateCategory refID="my_special_tool"&amp;gt;&amp;nbsp;&lt;/SPAN&gt;and both contain an defined interface which allows for communication between the host and the embeddable components.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's a very odd problem - it's almost like Pro just isn't incorporated the control1 embeddable control, I can see it's installed in the Pro Addin's manager, but Pro just isn't readying the config.daml from it&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 11:35:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/custom-daml-component-not-registering-kind-of/m-p/1173248#M8135</guid>
      <dc:creator>KierenTinning2</dc:creator>
      <dc:date>2022-05-12T11:35:50Z</dc:date>
    </item>
  </channel>
</rss>

