<?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 custom toolbox from Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/run-custom-toolbox-from-python/m-p/150076#M11625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I am still really new to working with a writing python script. What I have done is built a Data Model using Model Builder to export data out of an Oracle Database and bring it into a file geodatabase. I saved this model into a custom toolbox. What I am trying to do is to write a python script that will run the custom toolbox. Later - I plan on using Microsoft Task Scheduler to run this python script every night. I am not sure how to write this simple script to run my toolbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Custom Toolbox: CIS GIS Integration Tools.tbx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model: Water.CIS_Account_Data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model: Water.CIS_Service_Meters&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once I can get a script built that will run these models and/or the custom toolbox, I can do the rest on my own.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Dec 2011 20:26:51 GMT</pubDate>
    <dc:creator>ModernElectric</dc:creator>
    <dc:date>2011-12-01T20:26:51Z</dc:date>
    <item>
      <title>Run custom toolbox from Python</title>
      <link>https://community.esri.com/t5/python-questions/run-custom-toolbox-from-python/m-p/150076#M11625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I am still really new to working with a writing python script. What I have done is built a Data Model using Model Builder to export data out of an Oracle Database and bring it into a file geodatabase. I saved this model into a custom toolbox. What I am trying to do is to write a python script that will run the custom toolbox. Later - I plan on using Microsoft Task Scheduler to run this python script every night. I am not sure how to write this simple script to run my toolbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Custom Toolbox: CIS GIS Integration Tools.tbx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model: Water.CIS_Account_Data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model: Water.CIS_Service_Meters&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once I can get a script built that will run these models and/or the custom toolbox, I can do the rest on my own.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 20:26:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-custom-toolbox-from-python/m-p/150076#M11625</guid>
      <dc:creator>ModernElectric</dc:creator>
      <dc:date>2011-12-01T20:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Run custom toolbox from Python</title>
      <link>https://community.esri.com/t5/python-questions/run-custom-toolbox-from-python/m-p/150077#M11626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So you need something like...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ImportToolbox("full path to toolbox/toolboxname.tbx")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.gp.toolbox = "full path to toolbox/toolboxname.tbx";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.gp.toolboxname(any parameters)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 20:31:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-custom-toolbox-from-python/m-p/150077#M11626</guid>
      <dc:creator>ScottBlankenbeckler</dc:creator>
      <dc:date>2011-12-01T20:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Run custom toolbox from Python</title>
      <link>https://community.esri.com/t5/python-questions/run-custom-toolbox-from-python/m-p/150078#M11627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So you need something like...&lt;BR /&gt;arcpy.ImportToolbox("full path to toolbox/toolboxname.tbx")&lt;BR /&gt;arcpy.gp.toolbox = "full path to toolbox/toolboxname.tbx";&lt;BR /&gt;arcpy.gp.toolboxname(any parameters)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay - like I said I really do not know much about Python and having a hard time finding anything online - such as examples on putting together a simple python script that will run a toolbox. Is there the ability to take a model from model builder and make it a tool - and than have python run that tool? If so - how do I do this and how do I write the script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 20:47:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-custom-toolbox-from-python/m-p/150078#M11627</guid>
      <dc:creator>ModernElectric</dc:creator>
      <dc:date>2011-12-01T20:47:15Z</dc:date>
    </item>
  </channel>
</rss>

