<?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 allow a python tool parameter to accept a save location for a file that does not exist yet? Skip/modify parameter validation? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-allow-a-python-tool-parameter-to-accept-a/m-p/1605475#M74031</link>
    <description>&lt;P&gt;No, it was an input. Switching it to output has fixed it. Input felt logical to me, though I could see it either way.&lt;/P&gt;&lt;P&gt;That documentation doesn't explain the distinction between input/output parameters other than the axiom "an output parameter is an output." I understand my path parameter is related to the output of the tool, but is it not an input considering it's a value passed into the tool that the code uses? An output parameter isn't shown in the code samples and I'd struggle to remember I time I've seen an output parameter used in any example I've seen elsewhere--this is the first time I've needed one, actually.&lt;/P&gt;</description>
    <pubDate>Sun, 13 Apr 2025 14:46:20 GMT</pubDate>
    <dc:creator>Glasnoct</dc:creator>
    <dc:date>2025-04-13T14:46:20Z</dc:date>
    <item>
      <title>How to allow a python tool parameter to accept a save location for a file that does not exist yet? Skip/modify parameter validation?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-allow-a-python-tool-parameter-to-accept-a/m-p/1605455#M74029</link>
      <description>&lt;P&gt;I'm trying to give my python tool an input parameter that allows the user to select the export location/file path that the script will save the resulting feature class to. The problem is that if I want to give the user the functionality of a parameter with a data type that provides the 'browse' icon next to the text box, the parameter validates the chosen path when they confirm and if the file does not exist (because they manually entered a new feature class name to use) then the parameter throws up the little red "invalid" icon.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;A built-in tool like "Export Features" auto-populates the output path when the input is selected but from looking at the tool properties, I can't tell how that's accomplished or how it avoids throwing an error.&lt;BR /&gt;&lt;BR /&gt;How do I need to define my Parameter instance to accept that the value may be an "yet to be created" file? So I need to mess about with the ToolValidator class with which I have no experience yet?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":sad_but_relieved_face:"&gt;😥&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Apr 2025 22:26:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-allow-a-python-tool-parameter-to-accept-a/m-p/1605455#M74029</guid>
      <dc:creator>Glasnoct</dc:creator>
      <dc:date>2025-04-12T22:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to allow a python tool parameter to accept a save location for a file that does not exist yet? Skip/modify parameter validation?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-allow-a-python-tool-parameter-to-accept-a/m-p/1605458#M74030</link>
      <description>&lt;P&gt;are you setting a Parameter with "output" as the direction?&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/classes/parameter.htm" target="_blank"&gt;Parameter—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Apr 2025 23:51:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-allow-a-python-tool-parameter-to-accept-a/m-p/1605458#M74030</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-04-12T23:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to allow a python tool parameter to accept a save location for a file that does not exist yet? Skip/modify parameter validation?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-allow-a-python-tool-parameter-to-accept-a/m-p/1605475#M74031</link>
      <description>&lt;P&gt;No, it was an input. Switching it to output has fixed it. Input felt logical to me, though I could see it either way.&lt;/P&gt;&lt;P&gt;That documentation doesn't explain the distinction between input/output parameters other than the axiom "an output parameter is an output." I understand my path parameter is related to the output of the tool, but is it not an input considering it's a value passed into the tool that the code uses? An output parameter isn't shown in the code samples and I'd struggle to remember I time I've seen an output parameter used in any example I've seen elsewhere--this is the first time I've needed one, actually.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Apr 2025 14:46:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-allow-a-python-tool-parameter-to-accept-a/m-p/1605475#M74031</guid>
      <dc:creator>Glasnoct</dc:creator>
      <dc:date>2025-04-13T14:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to allow a python tool parameter to accept a save location for a file that does not exist yet? Skip/modify parameter validation?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-allow-a-python-tool-parameter-to-accept-a/m-p/1605630#M74034</link>
      <description>&lt;P&gt;Here's what they don't tell you: In case of error or failure, output parameters get deleted.&lt;/P&gt;&lt;P&gt;Inputs hang out because they assume they're important, but for the most part they assume that the output doesn't exist yet, so there won't be any harm if it disappears.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 12:56:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-allow-a-python-tool-parameter-to-accept-a/m-p/1605630#M74034</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2025-04-14T12:56:19Z</dc:date>
    </item>
  </channel>
</rss>

