<?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: Having to import toolbox when running script tool within same toolbox in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/having-to-import-toolbox-when-running-script-tool/m-p/816938#M819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp; have the same issue. I have 8 tools in a python toolbox and try to make another tool in the same toolbox that run several tools at once. Thanks for any suggestion.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 May 2020 13:17:00 GMT</pubDate>
    <dc:creator>CihangirAydöner</dc:creator>
    <dc:date>2020-05-17T13:17:00Z</dc:date>
    <item>
      <title>Having to import toolbox when running script tool within same toolbox</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/having-to-import-toolbox-when-running-script-tool/m-p/816937#M818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have created a custom tool box that contains several tool sets an lots of individual models (see screenshot.&amp;nbsp; To be able to batch run many of the individual tools, I have create a several simple script tools that basically run a series of the models in sequence.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though my script tools are withing the same overall toolbox, it seems in order for ArcMap to recognize and run my custom models I have to import the toolbox first (using ImportToolBox)&amp;nbsp; before running the scripttool&amp;nbsp; If I dont, I get an error about 'module has no object'.&amp;nbsp; I can work around this by importing the toolbox, but when sharing the tools, this can create some confusion if I hard code a path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My main questions are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is there a better way to handle this so I dont have to import toolbox explicity within script with a path to the custom toolbox&lt;/LI&gt;&lt;LI&gt;Why would you have to load the toolbox if it is already loaded within my ArcMap session and I am calling the script tool from the same toolbox?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any insight would be greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Neal&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/492017_pastedImage_1.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/492019_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/492018_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 10:07:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/having-to-import-toolbox-when-running-script-tool/m-p/816937#M818</guid>
      <dc:creator>NealBanerjee</dc:creator>
      <dc:date>2020-05-13T10:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Having to import toolbox when running script tool within same toolbox</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/having-to-import-toolbox-when-running-script-tool/m-p/816938#M819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp; have the same issue. I have 8 tools in a python toolbox and try to make another tool in the same toolbox that run several tools at once. Thanks for any suggestion.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 May 2020 13:17:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/having-to-import-toolbox-when-running-script-tool/m-p/816938#M819</guid>
      <dc:creator>CihangirAydöner</dc:creator>
      <dc:date>2020-05-17T13:17:00Z</dc:date>
    </item>
  </channel>
</rss>

