<?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: Relative paths while saving output in model builder in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/relative-paths-while-saving-output-in-model/m-p/743359#M24434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;for my current model I have several "Workspace" parameters, this was because we needed to save our intermediate files, so we specified them with a workspace parameter named differently. Try setting more then one "workspace" parameter. Our output files have a parameter called "Output Location" and our intermediate files have one called "Temporary Files" ect... don't forget the %Temporary Files%\reclass1 ect.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Aug 2013 17:50:41 GMT</pubDate>
    <dc:creator>als21</dc:creator>
    <dc:date>2013-08-20T17:50:41Z</dc:date>
    <item>
      <title>Relative paths while saving output in model builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/relative-paths-while-saving-output-in-model/m-p/743354#M24429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi folks...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a working model which runs perfectly on my computer but when the model is open by someone else on their computer, we encounter workspace issues with the output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The model currently incorporates the &lt;/SPAN&gt;&lt;STRONG&gt;Zonal Statistics as a Table &lt;/STRONG&gt;&lt;SPAN&gt;tool, where the output is saved to my hard drive. How can I change the settings so that the model will automatically know what drive to save output in regardless of the user computer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See output path below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;C:\Work\Selection_Results&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;In other words, is there a way to ensure that output will go into the folder Selection_Results no matter where the entire folder is saved i.e. USB Drive, External Hard Drive etc???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this isn't too confusing, I just simply want model builder to know where to read input from and save output to, without having to reset the paths in edit mode on another computer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: "Store relative path names (instead of absolute)" &lt;/SPAN&gt;&lt;STRONG&gt;is checked&lt;/STRONG&gt;&lt;SPAN&gt; in the model properties.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 16:43:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/relative-paths-while-saving-output-in-model/m-p/743354#M24429</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-07-22T16:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Relative paths while saving output in model builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/relative-paths-while-saving-output-in-model/m-p/743355#M24430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shiko,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's something I do for all of my tools I create for other users.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Create Workspace variable, make it a parameter, and have users navigate to the &lt;/SPAN&gt;&lt;STRONG&gt;Selection_Results&lt;/STRONG&gt;&lt;SPAN&gt; folder on their system before running the tool.&amp;nbsp; You can then make it a precondition before running the &lt;/SPAN&gt;&lt;STRONG&gt;Zonal Statistics as a Table&lt;/STRONG&gt;&lt;SPAN&gt; tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By default, the workspace variable will be called "Workspace", and for the output table you would simply replace "C:\Work\Selection_Results" with %Workspace%.&amp;nbsp; Your output table variable will then look like:&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;%Workspace%\OutputTable&lt;/STRONG&gt;&lt;SPAN&gt; .&amp;nbsp; Note, if you change the variable name from "Workspace" simply call the new variable name between percentage signs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If &lt;/SPAN&gt;&lt;STRONG&gt;Selection_Results&lt;/STRONG&gt;&lt;SPAN&gt; folder does not exist on someone's system, the tool will still output the table into whatever workspace the user chooses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 17:30:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/relative-paths-while-saving-output-in-model/m-p/743355#M24430</guid>
      <dc:creator>ChristopherBlinn1</dc:creator>
      <dc:date>2013-07-22T17:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Relative paths while saving output in model builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/relative-paths-while-saving-output-in-model/m-p/743356#M24431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How about simply making the workspace a parameter of the model, so it gets set before running?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 17:30:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/relative-paths-while-saving-output-in-model/m-p/743356#M24431</guid>
      <dc:creator>JimCousins</dc:creator>
      <dc:date>2013-07-22T17:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Relative paths while saving output in model builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/relative-paths-while-saving-output-in-model/m-p/743357#M24432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Chris....and Jim....You both had the same idea, which I will try right away.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers to you both &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 17:38:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/relative-paths-while-saving-output-in-model/m-p/743357#M24432</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-07-22T17:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Relative paths while saving output in model builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/relative-paths-while-saving-output-in-model/m-p/743358#M24433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Shiko,&lt;BR /&gt;&lt;BR /&gt;Here's something I do for all of my tools I create for other users.&lt;BR /&gt;&lt;BR /&gt;Create Workspace variable, make it a parameter, and have users navigate to the &lt;STRONG&gt;Selection_Results&lt;/STRONG&gt; folder on their system before running the tool.&amp;nbsp; You can then make it a precondition before running the &lt;STRONG&gt;Zonal Statistics as a Table&lt;/STRONG&gt; tool.&lt;BR /&gt;&lt;BR /&gt;By default, the workspace variable will be called "Workspace", and for the output table you would simply replace "C:\Work\Selection_Results" with %Workspace%.&amp;nbsp; Your output table variable will then look like:&amp;nbsp; &lt;STRONG&gt;%Workspace%\OutputTable&lt;/STRONG&gt; .&amp;nbsp; Note, if you change the variable name from "Workspace" simply call the new variable name between percentage signs.&lt;BR /&gt;&lt;BR /&gt;If &lt;STRONG&gt;Selection_Results&lt;/STRONG&gt; folder does not exist on someone's system, the tool will still output the table into whatever workspace the user chooses.&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;Chris B.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was hoping you could help me out with this one since I got the idea from you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;STRONG&gt;%Workspace%\WhateverFolderName&lt;/STRONG&gt;&lt;SPAN&gt; method is not quite working as I was hoping. I thought that the user would only have to define the workspace once and not have to tamper with the output location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What's happening if I don't explicitly select the location of my model &lt;/SPAN&gt;&lt;STRONG&gt;outputs &lt;/STRONG&gt;&lt;SPAN&gt;is that I get the following error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000875: Output table: C:\Work\A_Klamath_Presentation\Presentation7252013.gdb\Outputs\crops's workspace is an invalid output workspace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000581: Invalid parameters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Zonal Statistics as Table).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because the Zonal Statistics output was not navigated to. The only way the model works is if I navigate to both the workspace and output locations. I'm I doing something wrong or do I not have the correct settings on?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 20:41:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/relative-paths-while-saving-output-in-model/m-p/743358#M24433</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-08-14T20:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Relative paths while saving output in model builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/relative-paths-while-saving-output-in-model/m-p/743359#M24434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;for my current model I have several "Workspace" parameters, this was because we needed to save our intermediate files, so we specified them with a workspace parameter named differently. Try setting more then one "workspace" parameter. Our output files have a parameter called "Output Location" and our intermediate files have one called "Temporary Files" ect... don't forget the %Temporary Files%\reclass1 ect.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 17:50:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/relative-paths-while-saving-output-in-model/m-p/743359#M24434</guid>
      <dc:creator>als21</dc:creator>
      <dc:date>2013-08-20T17:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Relative paths while saving output in model builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/relative-paths-while-saving-output-in-model/m-p/743360#M24435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;for my current model I have several "Workspace" parameters, this was because we needed to save our intermediate files, so we specified them with a workspace parameter named differently. Try setting more then one "workspace" parameter. Our output files have a parameter called "Output Location" and our intermediate files have one called "Temporary Files" ect... don't forget the %Temporary Files%\reclass1 ect.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks but I actually found a solution that allows me to have just one Workspace variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See thread below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/90812-variable-workspace"&gt;http://forums.arcgis.com/threads/90812-variable-workspace&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the suggestion anyway, I'll keep it in mind for next time I run into something similar.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 19:03:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/relative-paths-while-saving-output-in-model/m-p/743360#M24435</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-08-20T19:03:43Z</dc:date>
    </item>
  </channel>
</rss>

