<?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 Run Script First in Model in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/run-script-first-in-model/m-p/833882#M1867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a model which outputs shapefiles. I have a script which I&amp;nbsp;have added to the model. The script deletes old files previously created. I want the script to run first in the model but as it isn't a&amp;nbsp;variable i can't set it as a parameter to decide the order it runs in.&lt;/P&gt;&lt;P&gt;anyone know how I can run the script first before the rest of the model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Apr 2018 15:12:45 GMT</pubDate>
    <dc:creator>JohnMcConalogue</dc:creator>
    <dc:date>2018-04-19T15:12:45Z</dc:date>
    <item>
      <title>Run Script First in Model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/run-script-first-in-model/m-p/833882#M1867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a model which outputs shapefiles. I have a script which I&amp;nbsp;have added to the model. The script deletes old files previously created. I want the script to run first in the model but as it isn't a&amp;nbsp;variable i can't set it as a parameter to decide the order it runs in.&lt;/P&gt;&lt;P&gt;anyone know how I can run the script first before the rest of the model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 15:12:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/run-script-first-in-model/m-p/833882#M1867</guid>
      <dc:creator>JohnMcConalogue</dc:creator>
      <dc:date>2018-04-19T15:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Run Script First in Model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/run-script-first-in-model/m-p/833883#M1868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest adding a variable to your script.&amp;nbsp; Then you can then set a &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/a-quick-tour-of-using-precondition.htm"&gt;precondition &lt;/A&gt;in modelbuilder.&amp;nbsp; Or, you can remove the script from modelbuilder, export the model to a python script, and then combine this with your other script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 16:40:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/run-script-first-in-model/m-p/833883#M1868</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2018-04-19T16:40:46Z</dc:date>
    </item>
  </channel>
</rss>

