<?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: Using a Python Script Tool in Modelbuilder in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/using-a-python-script-tool-in-modelbuilder/m-p/810947#M854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to make it a precondition.&amp;nbsp; Not sure how.&amp;nbsp; It won't allow me to connect it to anything else in the model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/484274_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2020 16:08:40 GMT</pubDate>
    <dc:creator>JohnBrand</dc:creator>
    <dc:date>2020-03-06T16:08:40Z</dc:date>
    <item>
      <title>Using a Python Script Tool in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-a-python-script-tool-in-modelbuilder/m-p/810945#M852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running ArcPro 2.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a small Python script and saved it as a Python Script Tool in my Toolbox.&amp;nbsp; It has no parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use it in in Model Builder in one of my existing models and I'm having trouble.&amp;nbsp; All I want to do is make sure that the script runs &lt;STRONG&gt;first&lt;/STRONG&gt; before the rest of the model.&amp;nbsp; How do I make my script a precondition for the rest of the model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 15:44:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-a-python-script-tool-in-modelbuilder/m-p/810945#M852</guid>
      <dc:creator>JohnBrand</dc:creator>
      <dc:date>2020-03-06T15:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Python Script Tool in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-a-python-script-tool-in-modelbuilder/m-p/810946#M853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it a precondition?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/modelbuilder/using-preconditions.htm" title="https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/modelbuilder/using-preconditions.htm"&gt;Preconditions—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 16:05:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-a-python-script-tool-in-modelbuilder/m-p/810946#M853</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-03-06T16:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Python Script Tool in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-a-python-script-tool-in-modelbuilder/m-p/810947#M854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to make it a precondition.&amp;nbsp; Not sure how.&amp;nbsp; It won't allow me to connect it to anything else in the model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/484274_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 16:08:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-a-python-script-tool-in-modelbuilder/m-p/810947#M854</guid>
      <dc:creator>JohnBrand</dc:creator>
      <dc:date>2020-03-06T16:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Python Script Tool in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-a-python-script-tool-in-modelbuilder/m-p/810948#M855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sounds like you can make one of your inputs the precondition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 17:18:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-a-python-script-tool-in-modelbuilder/m-p/810948#M855</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-03-06T17:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Python Script Tool in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-a-python-script-tool-in-modelbuilder/m-p/810949#M856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script (circled in green) downloads a zip file, unzips it, and overwrites existing data on my network.&amp;nbsp; How do I make the newly downloaded data a precondition to execute the model?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 17:38:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-a-python-script-tool-in-modelbuilder/m-p/810949#M856</guid>
      <dc:creator>JohnBrand</dc:creator>
      <dc:date>2020-03-06T17:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Python Script Tool in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-a-python-script-tool-in-modelbuilder/m-p/810950#M857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make the folder where your zip is located a parameter, even if you provide defaults, since I can only assume that your next two inputs come from there.&amp;nbsp;&amp;nbsp;that won't necessarily work since the zip may take more time that you need to use it as an input to something else.&amp;nbsp; You could alternately add another boolean parameter to your script... "continue" and check for its value after the download and unzip in your script.&amp;nbsp; You could even add a time.sleep to delay completion of the script to allow for unzip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 17:54:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-a-python-script-tool-in-modelbuilder/m-p/810950#M857</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-03-06T17:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Python Script Tool in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-a-python-script-tool-in-modelbuilder/m-p/810951#M858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting the Default to the folder where the data is saved &amp;amp; extracted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="96" src="https://community.esri.com/legacyfs/online/484595_pastedImage_1.png" width="877" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/484596_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 17:40:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-a-python-script-tool-in-modelbuilder/m-p/810951#M858</guid>
      <dc:creator>JohnBrand</dc:creator>
      <dc:date>2020-03-09T17:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Python Script Tool in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-a-python-script-tool-in-modelbuilder/m-p/1315974#M3862</link>
      <description>&lt;P&gt;@&lt;SPAN class=""&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/14979" target="_self"&gt;&lt;SPAN class=""&gt;JohnBrand&lt;/SPAN&gt;&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;‎&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;similar problem here - and i didn't get the point of your last message. i have a script that chanes Null-Values in a table into zeros and i have put that script into a script-tool-node. since the script doesn't return any output i am not able to use the node as a precondition for the following "calculate field" node. adding a parameter with the default path - as you supposed - doesn't change my situation - since this input parameter can't be used as a precondition for the field calculator node as well. so i think i would need a return value within the script, use that value as an (output-)parameter, use that parameter as a variable within my model, and somehow check that variable value as a condition for going into the calculation step of my "Calculate Field"-node. but i have no idea how to implement that ... thx for help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 10:55:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-a-python-script-tool-in-modelbuilder/m-p/1315974#M3862</guid>
      <dc:creator>robertkalasek</dc:creator>
      <dc:date>2023-08-07T10:55:32Z</dc:date>
    </item>
  </channel>
</rss>

