<?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: Current Workspace for Parameters in Model Builder in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/current-workspace-for-parameters-in-model-builder/m-p/1612261#M95577</link>
    <description>&lt;P&gt;Wondering if you ever found a solution to this as I am experiencing a similar issue...&lt;/P&gt;&lt;P&gt;From my investigations, you might need to use %workspace%\Contours_Layer &amp;amp;&amp;nbsp;%workspace%\Slope_Symbolized&lt;/P&gt;&lt;P&gt;%workspace% should reference the current default gdb.&lt;/P&gt;&lt;P&gt;My issue is that when I create my model, package it up in a toolbox and then into a Project Template (.aptx) for other users to access...the %workspace% in the output parameter of my model is changed to a temp location in the AppData folder...&lt;/P&gt;&lt;P&gt;Cant figure out how to just have the model retain the %workspace% shortcut so that it always just outputs to the current gdb given that users are accessing this all through a .aptx template.&lt;/P&gt;</description>
    <pubDate>Wed, 07 May 2025 00:13:41 GMT</pubDate>
    <dc:creator>BryanJohnstone</dc:creator>
    <dc:date>2025-05-07T00:13:41Z</dc:date>
    <item>
      <title>Current Workspace for Parameters in Model Builder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/current-workspace-for-parameters-in-model-builder/m-p/1310586#M71308</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have created a model that clips DEM data to my selected parcel boundary to output "Contours_Layer" and "Slope_Symbolized". I have them set as parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This model will ultimately be used in different projects. The goal would be to use the model without having to manually type in the file paths of&amp;nbsp;the current project I am in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Is it possible to set the file path for "Contours_Layers" and "Slope_Symbolized" to the current geodatabase?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using "default.gdb" "%CurrentWorkspace%\" but recived the following error message:&amp;nbsp;&lt;FONT size="5"&gt;&lt;SPAN&gt;000875: &amp;lt;value&amp;gt;: &amp;lt;value&amp;gt;'s workspace is an invalid output workspace.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;What is the correct way to set the output of my parameters to the current workspace?&lt;/P&gt;&lt;P&gt;I believe in arcpy the proper syntax is as follows:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
aprx = arcpy.mp.ArcGISProject("CURRENT")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unless I were to add a script into the model, I doubt the syntax above is the same for model builder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 17:01:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/current-workspace-for-parameters-in-model-builder/m-p/1310586#M71308</guid>
      <dc:creator>EuropaxEarth</dc:creator>
      <dc:date>2023-07-21T17:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Current Workspace for Parameters in Model Builder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/current-workspace-for-parameters-in-model-builder/m-p/1612261#M95577</link>
      <description>&lt;P&gt;Wondering if you ever found a solution to this as I am experiencing a similar issue...&lt;/P&gt;&lt;P&gt;From my investigations, you might need to use %workspace%\Contours_Layer &amp;amp;&amp;nbsp;%workspace%\Slope_Symbolized&lt;/P&gt;&lt;P&gt;%workspace% should reference the current default gdb.&lt;/P&gt;&lt;P&gt;My issue is that when I create my model, package it up in a toolbox and then into a Project Template (.aptx) for other users to access...the %workspace% in the output parameter of my model is changed to a temp location in the AppData folder...&lt;/P&gt;&lt;P&gt;Cant figure out how to just have the model retain the %workspace% shortcut so that it always just outputs to the current gdb given that users are accessing this all through a .aptx template.&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 00:13:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/current-workspace-for-parameters-in-model-builder/m-p/1612261#M95577</guid>
      <dc:creator>BryanJohnstone</dc:creator>
      <dc:date>2025-05-07T00:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Current Workspace for Parameters in Model Builder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/current-workspace-for-parameters-in-model-builder/m-p/1700630#M103075</link>
      <description>&lt;P&gt;I had the same issue. Finally, I zipped the project instead of creating a package. Once unzipped by the end-user, it keeps the&amp;nbsp;&lt;SPAN&gt;%workspace%&amp;nbsp;instead of replacing it by the temp path related to the person who developed the project.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 14:59:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/current-workspace-for-parameters-in-model-builder/m-p/1700630#M103075</guid>
      <dc:creator>MetralAlexis</dc:creator>
      <dc:date>2026-05-07T14:59:59Z</dc:date>
    </item>
  </channel>
</rss>

