<?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: Using a Windows Variable, Environment Variable in Config.daml's viewerXslt Parameter in Metadata Toolkit Addin in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-a-windows-variable-environment-variable-in/m-p/1324789#M10292</link>
    <description>Since the Add-in is compiled code, e.g., C#, you can reference the application properties with Project.SetProperty and Project.GetEvaluatedProperty(String) Method. Use these rather than config.daml to hold application and user properties specific to the add-in (a.k.a., visual studio project).&lt;BR /&gt;Since you can reference any location in any file location, recommend using a shared UNC path like \\mydomainserver\mygisfolder\mycustomappfolder&amp;lt;&amp;gt; and store the shared files there. That way you only have one copy for your entire agency.&lt;BR /&gt;</description>
    <pubDate>Fri, 01 Sep 2023 15:38:01 GMT</pubDate>
    <dc:creator>RichardDaniels</dc:creator>
    <dc:date>2023-09-01T15:38:01Z</dc:date>
    <item>
      <title>Using a Windows Variable, Environment Variable in Config.daml's viewerXslt Parameter in Metadata Toolkit Addin</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-a-windows-variable-environment-variable-in/m-p/1324610#M10291</link>
      <description>&lt;P&gt;Due to folder permission restrictions in the default install location for some of my ArcGIS Pro users (unable to edit/add files in the \Program Files folder), I need to find a new home for the .xsl and xslt files that support a custom metadata stylesheet add-in.&lt;/P&gt;&lt;P&gt;I have &lt;EM&gt;unsuccessfully&lt;/EM&gt; tested the use of the Windows &lt;EM&gt;&lt;STRONG&gt;%UserProfile%&lt;/STRONG&gt;&lt;/EM&gt; variable (usually &lt;EM&gt;&lt;STRONG&gt;C:\Users\&amp;lt;USER_NAME_HERE&amp;gt;\AppData\Roaming&lt;/STRONG&gt;&lt;/EM&gt;) in the &lt;EM&gt;&lt;STRONG&gt;viewerXslt&lt;/STRONG&gt;&lt;/EM&gt; parameter in the &lt;EM&gt;&lt;STRONG&gt;Config.daml&lt;/STRONG&gt;&lt;/EM&gt; file;&amp;nbsp; it's not honored.&amp;nbsp; Based on my testing and the example &lt;A href="https://github.com/Esri/arcgis-pro-metadata-toolkit/wiki/Customize-the-metadata-display" target="_self"&gt;found here&lt;/A&gt;, I know that I am able to specify a drive/folder/file path (ex. &lt;EM&gt;&lt;STRONG&gt;C:\test\ArcGISProFull.xsl&lt;/STRONG&gt;&lt;/EM&gt;) for the &lt;STRONG&gt;&lt;EM&gt;viewerXslt&lt;/EM&gt; &lt;/STRONG&gt;parameter.&lt;/P&gt;&lt;P&gt;To visualize, the top entry shown below does not work, the second does:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;viewerXslt&amp;gt;%USERPROFILE%\AppData\Roaming\StyleTest\CustomStylesheetFile.xsl&amp;lt;/viewerXslt&amp;gt;
&amp;lt;viewerXslt&amp;gt;C:\Users\USER_NAME_HERE\AppData\Roaming\StyleTest\CustomStylesheetFile.xsl&amp;lt;/viewerXslt&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;In the scenario where C:\ is not available, I would like to know if there is anyway to update the viewerXslt parameter after or during add-in initialization.&amp;nbsp; Is it possible to update parameters listed in the &lt;EM&gt;&lt;STRONG&gt;Config.daml&lt;/STRONG&gt;&lt;/EM&gt; or are those constants?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that is not possible, is there a better way to find and use an environment variable, Windows variable (like &lt;EM&gt;&lt;STRONG&gt;%UserProfile%&lt;/STRONG&gt;&lt;/EM&gt;) or known location in a &lt;EM&gt;&lt;STRONG&gt;Config.daml&lt;/STRONG&gt; &lt;/EM&gt;file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 01:30:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-a-windows-variable-environment-variable-in/m-p/1324610#M10291</guid>
      <dc:creator>TheBobScript</dc:creator>
      <dc:date>2023-09-01T01:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Windows Variable, Environment Variable in Config.daml's viewerXslt Parameter in Metadata Toolkit Addin</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-a-windows-variable-environment-variable-in/m-p/1324789#M10292</link>
      <description>Since the Add-in is compiled code, e.g., C#, you can reference the application properties with Project.SetProperty and Project.GetEvaluatedProperty(String) Method. Use these rather than config.daml to hold application and user properties specific to the add-in (a.k.a., visual studio project).&lt;BR /&gt;Since you can reference any location in any file location, recommend using a shared UNC path like \\mydomainserver\mygisfolder\mycustomappfolder&amp;lt;&amp;gt; and store the shared files there. That way you only have one copy for your entire agency.&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Sep 2023 15:38:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-a-windows-variable-environment-variable-in/m-p/1324789#M10292</guid>
      <dc:creator>RichardDaniels</dc:creator>
      <dc:date>2023-09-01T15:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Windows Variable, Environment Variable in Config.daml's viewerXslt Parameter in Metadata Toolkit Addin</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-a-windows-variable-environment-variable-in/m-p/1325034#M10295</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2978"&gt;@RichardDaniels&lt;/a&gt;&amp;nbsp;- thanks for the Project.SetProperty and Project.GetEvaluatedProperty suggestions.&amp;nbsp; I'll see where that gets me and update this thread with the results.&lt;BR /&gt;&lt;BR /&gt;Great idea on use of a shared UNC path/location.&amp;nbsp; Unfortunately our end users work at disparate locations with different environments and do not have a common network where I could use this option.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2023 01:35:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-a-windows-variable-environment-variable-in/m-p/1325034#M10295</guid>
      <dc:creator>TheBobScript</dc:creator>
      <dc:date>2023-09-02T01:35:35Z</dc:date>
    </item>
  </channel>
</rss>

