<?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 How does modelbuilder work with scripts? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-does-modelbuilder-work-with-scripts/m-p/149255#M5034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm being dumb. The real question is can I call a model from a python script, passing the model my desired output names and folders?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That way I can tweak the model in modelbuilder, but won't have to tweak the python code every time I change the model.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Apr 2010 22:06:52 GMT</pubDate>
    <dc:creator>jimparsons</dc:creator>
    <dc:date>2010-04-26T22:06:52Z</dc:date>
    <item>
      <title>How does modelbuilder work with scripts?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-does-modelbuilder-work-with-scripts/m-p/149254#M5033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm aware that from modelbuilder I can export my script to python and then get more programmatic control over stuff like file names and folder locations and whatnot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the method would be a) design script in modelbuilder, b) export script to py, c) tinker with python code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if I want to modify the model in step a do I have to reexport everything, and thus have to do more tinkering as per step c)? Or is there a way for modelbuilder and python to coexist?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MY specific example is to put the files from each run of my model into a separate folder. I will name that folder using python's import time module, so each folder will be unique. I don't think I can do that in modelbuilder, I think I have to do that from the script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But once the script is made it's harder to go back and edit the model. Dyou see what I'm saying? So the question is can model builder call on bits of python script to create folder names, or is it either/or: model approach, or script approach?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Apr 2010 21:57:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-does-modelbuilder-work-with-scripts/m-p/149254#M5033</guid>
      <dc:creator>jimparsons</dc:creator>
      <dc:date>2010-04-26T21:57:53Z</dc:date>
    </item>
    <item>
      <title>How does modelbuilder work with scripts?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-does-modelbuilder-work-with-scripts/m-p/149255#M5034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm being dumb. The real question is can I call a model from a python script, passing the model my desired output names and folders?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That way I can tweak the model in modelbuilder, but won't have to tweak the python code every time I change the model.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Apr 2010 22:06:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-does-modelbuilder-work-with-scripts/m-p/149255#M5034</guid>
      <dc:creator>jimparsons</dc:creator>
      <dc:date>2010-04-26T22:06:52Z</dc:date>
    </item>
    <item>
      <title>How does modelbuilder work with scripts?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-does-modelbuilder-work-with-scripts/m-p/149256#M5035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm pretty to new to scripting and model building but yeah I think you can do that. In the script you can call all of the tools in the predefined toolboxes so if you create a model you want to call from a script, the model will be saved in whatever toolbox you choose to save it in and you would call that model in the same way you would call the other tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 10:58:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-does-modelbuilder-work-with-scripts/m-p/149256#M5035</guid>
      <dc:creator>MikeSteven</dc:creator>
      <dc:date>2010-04-27T10:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: How does modelbuilder work with scripts?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-does-modelbuilder-work-with-scripts/m-p/149257#M5036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm being dumb. The real question is can I call a model from a python script, passing the model my desired output names and folders?&lt;BR /&gt;&lt;BR /&gt;That way I can tweak the model in modelbuilder, but won't have to tweak the python code every time I change the model.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Absolutely!&amp;nbsp; Geoprocessing is designed so that you can call models from models, models from scripts, and scripts from models.&amp;nbsp; You just need an understanding of model parameters and how to add your custom toolbox in Python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/A_quick_tour_of_creating_tools_with_ModelBuilder/002w0000007m000000/"&gt;A quick tour of creating tools with ModelBuilder&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Adding_toolboxes_in_Python/002z00000009000000/"&gt;Adding toolboxes in Python&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 03:11:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-does-modelbuilder-work-with-scripts/m-p/149257#M5036</guid>
      <dc:creator>DaleHoneycutt</dc:creator>
      <dc:date>2010-06-02T03:11:11Z</dc:date>
    </item>
  </channel>
</rss>

