<?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: How to name a output file based on input file and a user defined suffix and save the output file to a workspace? in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/how-to-name-a-output-file-based-on-input-file-and/m-p/1058196#M2496</link>
    <description>&lt;P&gt;As a Python script tool.&lt;/P&gt;</description>
    <pubDate>Fri, 14 May 2021 21:14:00 GMT</pubDate>
    <dc:creator>badrinathkar</dc:creator>
    <dc:date>2021-05-14T21:14:00Z</dc:date>
    <item>
      <title>How to name a output file based on input file and a user defined suffix and save the output file to a workspace?</title>
      <link>https://community.esri.com/t5/arcmap-questions/how-to-name-a-output-file-based-on-input-file-and/m-p/1058180#M2494</link>
      <description>&lt;P&gt;I am looking for a python code that allows me to name an output file(shapefile/dbf) based on input file&amp;nbsp;+user defined suffix. Thereafter I would like to save the output file to a workspace.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 20:33:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/how-to-name-a-output-file-based-on-input-file-and/m-p/1058180#M2494</guid>
      <dc:creator>badrinathkar</dc:creator>
      <dc:date>2021-05-14T20:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to name a output file based on input file and a user defined suffix and save the output file to a workspace?</title>
      <link>https://community.esri.com/t5/arcmap-questions/how-to-name-a-output-file-based-on-input-file-and/m-p/1058186#M2495</link>
      <description>&lt;P&gt;via command line or as a python script tool?&lt;/P&gt;&lt;P&gt;without more info, something along the lines of:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import os

in_file = arcpy.GetParameterAsText(0)
output_workspace = arcpy.GetParameterAsText(1)
out_suffix = arcpy.GetParameterAsText(2)

out_name = os.path.basename
out_name += out_suffix

out_filepath = os.path.join(output_workspace, out_name)
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 14 May 2021 20:47:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/how-to-name-a-output-file-based-on-input-file-and/m-p/1058186#M2495</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-05-14T20:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to name a output file based on input file and a user defined suffix and save the output file to a workspace?</title>
      <link>https://community.esri.com/t5/arcmap-questions/how-to-name-a-output-file-based-on-input-file-and/m-p/1058196#M2496</link>
      <description>&lt;P&gt;As a Python script tool.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 21:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/how-to-name-a-output-file-based-on-input-file-and/m-p/1058196#M2496</guid>
      <dc:creator>badrinathkar</dc:creator>
      <dc:date>2021-05-14T21:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to name a output file based on input file and a user defined suffix and save the output file to a workspace?</title>
      <link>https://community.esri.com/t5/arcmap-questions/how-to-name-a-output-file-based-on-input-file-and/m-p/1058219#M2498</link>
      <description>&lt;P&gt;So will the above fit into your existing script? do you understand it etc.?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 22:03:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/how-to-name-a-output-file-based-on-input-file-and/m-p/1058219#M2498</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-05-14T22:03:19Z</dc:date>
    </item>
  </channel>
</rss>

