<?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>idea Usage of environment variables (e.g. %TEMP%) in values of tool parameters in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/usage-of-environment-variables-e-g-temp-in-values/idi-p/1268254</link>
    <description>&lt;P&gt;In order to provide dynamic values for tool parameters, it would be &lt;U&gt;very&lt;/U&gt; useful to&amp;nbsp;support the use of environment variables (e.g. %TEMP%, %USERPROFILE%, %APPDATA%, or any other custom environment variables) in values of tool parameters.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2023 20:19:12 GMT</pubDate>
    <dc:creator>ChristophKoschmieder</dc:creator>
    <dc:date>2023-03-15T20:19:12Z</dc:date>
    <item>
      <title>Usage of environment variables (e.g. %TEMP%) in values of tool parameters</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/usage-of-environment-variables-e-g-temp-in-values/idi-p/1268254</link>
      <description>&lt;P&gt;In order to provide dynamic values for tool parameters, it would be &lt;U&gt;very&lt;/U&gt; useful to&amp;nbsp;support the use of environment variables (e.g. %TEMP%, %USERPROFILE%, %APPDATA%, or any other custom environment variables) in values of tool parameters.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 20:19:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/usage-of-environment-variables-e-g-temp-in-values/idi-p/1268254</guid>
      <dc:creator>ChristophKoschmieder</dc:creator>
      <dc:date>2023-03-15T20:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of environment variables (e.g. %TEMP%) in values of tool parameters</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/usage-of-environment-variables-e-g-temp-in-values/idc-p/1268618#M23806</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/170470"&gt;@ChristophKoschmieder&lt;/a&gt;&amp;nbsp;Are you thinking of a programatic way to use these locations that are shown in the Browse Dialog?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonathanNeal_0-1678987618159.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65471i7FCA84A641EB6D67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonathanNeal_0-1678987618159.png" alt="JonathanNeal_0-1678987618159.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 17:29:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/usage-of-environment-variables-e-g-temp-in-values/idc-p/1268618#M23806</guid>
      <dc:creator>JonathanNeal</dc:creator>
      <dc:date>2023-03-16T17:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of environment variables (e.g. %TEMP%) in values of tool parameters</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/usage-of-environment-variables-e-g-temp-in-values/idc-p/1268868#M23820</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/342593"&gt;@JonathanNeal&lt;/a&gt;,&amp;nbsp;no, my idea targets a more general use of *any* (windows / operation system) environment variable in parameter values for geoprocessing tools.&lt;/P&gt;&lt;P&gt;Let's say you develop a python geoprocessing tool, which has a parameter to hold the user currently logged in, then I would like to do the following:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;param = arcpy.Parameter("usr", "Logged in User", "Input", "GPString", "Required")

param.value = "%USERNAME%"&lt;/LI-CODE&gt;&lt;P&gt;And when executing the tool the value above is dynamically replaced by the current value of the environment variable.&lt;/P&gt;&lt;P&gt;We need this functionality especially, because right now we are migrating a project from ArcGIS desktop and WMX to ArcGIS Pro. Because the full functionality of WMX is no longer needed, we are planning without it in ArcGIS Pro, but we would like to keep the possibility to have dynamic parameter values.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 07:25:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/usage-of-environment-variables-e-g-temp-in-values/idc-p/1268868#M23820</guid>
      <dc:creator>ChristophKoschmieder</dc:creator>
      <dc:date>2023-03-17T07:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of environment variables (e.g. %TEMP%) in values of tool parameters</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/usage-of-environment-variables-e-g-temp-in-values/idc-p/1269145#M23830</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/170470"&gt;@ChristophKoschmieder&lt;/a&gt;&amp;nbsp;Per the similar case in the &lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/windows-environment-variables-in-modelbuilder/idi-p/939079" target="_self"&gt;ModelBuilder thread&lt;/A&gt; you can do the following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;param = arcpy.Parameter("usr", "Logged in User", "Input", "GPString", "Required")

param.value = arcpy.GetSystemEnvironment("USERNAME")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 21:38:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/usage-of-environment-variables-e-g-temp-in-values/idc-p/1269145#M23830</guid>
      <dc:creator>JonathanNeal</dc:creator>
      <dc:date>2023-03-17T21:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of environment variables (e.g. %TEMP%) in values of tool parameters</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/usage-of-environment-variables-e-g-temp-in-values/idc-p/1271554#M24008</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/342593"&gt;@JonathanNeal&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you are right for the parameter initialization, but we would like to enable the _user_ to use environment variables as parameter values _after_ opening the tool dialog (thus changing the default value).&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 21:07:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/usage-of-environment-variables-e-g-temp-in-values/idc-p/1271554#M24008</guid>
      <dc:creator>ChristophKoschmieder</dc:creator>
      <dc:date>2023-03-24T21:07:00Z</dc:date>
    </item>
  </channel>
</rss>

