<?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 arcpy toolboxes auto generate output name to the scratch workspaces in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-toolboxes-auto-generate-output-name-to-the/m-p/1003730#M59098</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i make script who uses arcpy toolboxes and makes lot of output files. I set the scrath workspace for this outputs.&lt;/P&gt;&lt;P&gt;i have noticed, that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.CopyFeatures_management('TreesP')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i can do not write output file name and its goes to scrath workspace, and it is nice.&lt;/P&gt;&lt;P&gt;But for:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.Buffer_analysis('TreesP', '', '2 Meters')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;arpy do not let me not write output name and if i write it, than output goes to current workspace(not scrach).&lt;/P&gt;&lt;P&gt;How to make: i do not write output name and its goes to scrath workspace?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 21 Nov 2020 16:27:43 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-11-21T16:27:43Z</dc:date>
    <item>
      <title>arcpy toolboxes auto generate output name to the scratch workspaces</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-toolboxes-auto-generate-output-name-to-the/m-p/1003730#M59098</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i make script who uses arcpy toolboxes and makes lot of output files. I set the scrath workspace for this outputs.&lt;/P&gt;&lt;P&gt;i have noticed, that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.CopyFeatures_management('TreesP')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i can do not write output file name and its goes to scrath workspace, and it is nice.&lt;/P&gt;&lt;P&gt;But for:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.Buffer_analysis('TreesP', '', '2 Meters')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;arpy do not let me not write output name and if i write it, than output goes to current workspace(not scrach).&lt;/P&gt;&lt;P&gt;How to make: i do not write output name and its goes to scrath workspace?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 16:27:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-toolboxes-auto-generate-output-name-to-the/m-p/1003730#M59098</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-11-21T16:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy toolboxes auto generate output name to the scratch workspaces</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-toolboxes-auto-generate-output-name-to-the/m-p/1003731#M59099</link>
      <description>&lt;P&gt;At the bottom of each tools help there is a list of the environments that each tool supports&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/scratch-workspace.htm" target="_self"&gt;environment-settings/scratch-workspace&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your examples both support the scratch workspace, but there is no environment setting not to supply a name.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/copy-features.htm" target="_self"&gt;data-management/copy-features&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;FONT size="3"&gt;Environments&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT size="3"&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/current-workspace.htm" target="_blank" rel="noopener"&gt;Current Workspace&lt;/A&gt;,&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/scratch-workspace.htm" target="_blank" rel="noopener"&gt;Scratch Workspace&lt;/A&gt;&lt;/FONT&gt;,&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;and&lt;BR /&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/analysis/buffer.htm" target="_self"&gt;analysis/buffer&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;FONT size="4"&gt;Environments&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class="gptoolenvs"&gt;&lt;SPAN&gt;...&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/current-workspace.htm" target="_blank" rel="noopener"&gt;Current Workspace&lt;/A&gt;,&lt;SPAN&gt;&amp;nbsp;...&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/scratch-workspace.htm" target="_blank" rel="noopener"&gt;Scratch Workspace&lt;/A&gt;,&lt;/DIV&gt;&lt;DIV class="gptoolenvs"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="gptoolenvs"&gt;If you don't need the results, or they are temporary, consider using the "memory" workspace&lt;/DIV&gt;&lt;DIV class="gptoolenvs"&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/basics/the-in-memory-workspace.htm" target="_self"&gt;the-in-memory-workspace&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sat, 21 Nov 2020 16:49:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-toolboxes-auto-generate-output-name-to-the/m-p/1003731#M59099</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-11-21T16:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy toolboxes auto generate output name to the scratch workspaces</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-toolboxes-auto-generate-output-name-to-the/m-p/1003732#M59100</link>
      <description>&lt;P&gt;"memory" workspace is nice, but for ArcGIS Pro, but i have Desctop 10.6&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 16:58:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-toolboxes-auto-generate-output-name-to-the/m-p/1003732#M59100</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-11-21T16:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy toolboxes auto generate output name to the scratch workspaces</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-toolboxes-auto-generate-output-name-to-the/m-p/1003737#M59101</link>
      <description>&lt;P&gt;check your help files&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/10.6/analyze/modelbuilder/the-in-memory-workspace.htm" target="_self"&gt;the-in-memory-workspace&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 19:23:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-toolboxes-auto-generate-output-name-to-the/m-p/1003737#M59101</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-11-21T19:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy toolboxes auto generate output name to the scratch workspaces</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-toolboxes-auto-generate-output-name-to-the/m-p/1003738#M59102</link>
      <description>&lt;P&gt;Are the names you are passing layer/table view names or data set names?&amp;nbsp; If the latter, just don't.&amp;nbsp; When passing data sets, it is best to pass the full path and not rely on whatever workspaces you may or may not have set to find the data sets based solely on a name.&amp;nbsp; Passing the full path makes the code more readable and reduces the risk of running into gremlins with how various geoprocessing tools handle finding data sets.&lt;/P&gt;&lt;P&gt;I recommend using &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/createscratchname.htm" target="_blank"&gt;CreateScratchName—ArcMap | Documentation (arcgis.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 19:30:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-toolboxes-auto-generate-output-name-to-the/m-p/1003738#M59102</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-11-21T19:30:35Z</dc:date>
    </item>
  </channel>
</rss>

