<?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: Trigger Update DAML XML Tree a second time in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/trigger-update-daml-xml-tree-a-second-time/m-p/1037025#M6350</link>
    <description>&lt;P&gt;Thank you Kirk and Wolf for your prompt responses. I think we need to rethink our launch process for the Pro App.&lt;/P&gt;&lt;P&gt;Launching Pro with certain configuration arguments seems a stable solution to me.&lt;/P&gt;&lt;P&gt;Thank you Wolf for the tip about replacing the splash, I will take a look at that...&lt;/P&gt;</description>
    <pubDate>Tue, 16 Mar 2021 07:47:50 GMT</pubDate>
    <dc:creator>KarlHuber</dc:creator>
    <dc:date>2021-03-16T07:47:50Z</dc:date>
    <item>
      <title>Trigger Update DAML XML Tree a second time</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/trigger-update-daml-xml-tree-a-second-time/m-p/1036500#M6344</link>
      <description>&lt;P&gt;Hello dear SDK-Dev-Team&lt;/P&gt;&lt;P&gt;Is it possible to trigger the update of the DAML XML Database in the ConfigurationManager a second time?&lt;/P&gt;&lt;P&gt;In detail:&lt;/P&gt;&lt;P&gt;We have written a Configuration AddIn for Pro and use an ArcGIS.Desktop.Framework.Contracts.ConfigurationManager Instance. In this ConfigurationManager we override the method&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;protected override void OnUpdateDatabase(XDocument database)
{
  EvaluateDatabase(database);
}&lt;/LI-CODE&gt;&lt;P&gt;...and modify the DAML XML tree.&lt;/P&gt;&lt;P&gt;However:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;After&lt;/STRONG&gt; we pop up our Custom Start Page, we want to make some subsequent modifications to the DAML XML. Since on our Start Page some information of which buttons and groups should be visible have been selected...&lt;/P&gt;&lt;P&gt;My question:&lt;/P&gt;&lt;P&gt;Is it possible to trigger the update of the DAML XML database and thus the build of the Pro application a second time from a Custom Start Page?&lt;/P&gt;&lt;P&gt;How can this be achieved programmatically?&lt;/P&gt;&lt;P&gt;Thanks a lot in advance for your suggestions.&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 07:58:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/trigger-update-daml-xml-tree-a-second-time/m-p/1036500#M6344</guid>
      <dc:creator>KarlHuber</dc:creator>
      <dc:date>2021-03-15T07:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Update DAML XML Tree a second time</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/trigger-update-daml-xml-tree-a-second-time/m-p/1036700#M6346</link>
      <description>&lt;P&gt;The documentation &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic14871.html" target="_blank" rel="noopener"&gt;says&lt;/A&gt; "last chance", so I assume you can't.&lt;/P&gt;&lt;P&gt;As a workaround, maybe instead launch a new instance of ArcGISPro.exe using &lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.processstartinfo?view=netframework-4.8" target="_blank" rel="noopener"&gt;Process.Start&lt;/A&gt; after user selects choices on initial start page, then exit.&amp;nbsp; Pass in &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Command-line-switches-for-ArcGISPro.exe#run-the-named-managed-configuration" target="_blank" rel="noopener"&gt;command line argument for /config:config_name&lt;/A&gt;&amp;nbsp;or as a &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Framework#get-command-line-arguments" target="_blank" rel="noopener"&gt;custom command line argument&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;If you go with the custom command line args, you can parse them in your override of OnUpdateDatabase to specify what buttons and groups should be visible.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 16:56:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/trigger-update-daml-xml-tree-a-second-time/m-p/1036700#M6346</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-03-15T16:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Update DAML XML Tree a second time</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/trigger-update-daml-xml-tree-a-second-time/m-p/1036944#M6348</link>
      <description>&lt;P&gt;Kirk's assessment is correct,&amp;nbsp;&lt;SPAN&gt;OnUpdateDatabase&amp;nbsp;presents the last opportunity to make changes to the DAML model.&amp;nbsp; I tried different workarounds, but the only workaround I found was to replace the splash screen with a popup window that prompts the user for input.&amp;nbsp; Needless to say this means that your code-behind on the splash screen cannot use any Pro API functionality.&amp;nbsp; I attached my sample app in case it can be of use.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 00:02:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/trigger-update-daml-xml-tree-a-second-time/m-p/1036944#M6348</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-03-16T00:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Update DAML XML Tree a second time</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/trigger-update-daml-xml-tree-a-second-time/m-p/1037025#M6350</link>
      <description>&lt;P&gt;Thank you Kirk and Wolf for your prompt responses. I think we need to rethink our launch process for the Pro App.&lt;/P&gt;&lt;P&gt;Launching Pro with certain configuration arguments seems a stable solution to me.&lt;/P&gt;&lt;P&gt;Thank you Wolf for the tip about replacing the splash, I will take a look at that...&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 07:47:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/trigger-update-daml-xml-tree-a-second-time/m-p/1037025#M6350</guid>
      <dc:creator>KarlHuber</dc:creator>
      <dc:date>2021-03-16T07:47:50Z</dc:date>
    </item>
  </channel>
</rss>

