<?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 Loading Toolbox within Script Tool for Use with Active ArcMap Session  in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/loading-toolbox-within-script-tool-for-use-with/m-p/768085#M1346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom toolbox that I have created with a bunch (20+) of ModelBuilder tools.&amp;nbsp; I have created a Script Tool in Python that basically runs all of the individual tools in batch mode.&amp;nbsp; The script tool is stored in the same tool box (different tool set) than the individual components.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to run the script tool successfully it seems I have to explicitly load the toolbox (arcpy.ImportToolbox(&amp;lt;name&amp;gt;.tbx)) even though Im running the script from the tool box that is already loaded in the current ArcMap document/session.&amp;nbsp; If I dont load it, I get the following error (the RskPreA_rarr is the name of my first model/tool)&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/446814_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not that it is a big deal to load the toolbox, but this seems like rather odd behavoir that I dont recall happening before in other things Ive done.&amp;nbsp; Any insights on what is happening or if I am setting up something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Neal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2019 16:05:00 GMT</pubDate>
    <dc:creator>NealBanerjee</dc:creator>
    <dc:date>2019-05-08T16:05:00Z</dc:date>
    <item>
      <title>Loading Toolbox within Script Tool for Use with Active ArcMap Session</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/loading-toolbox-within-script-tool-for-use-with/m-p/768085#M1346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom toolbox that I have created with a bunch (20+) of ModelBuilder tools.&amp;nbsp; I have created a Script Tool in Python that basically runs all of the individual tools in batch mode.&amp;nbsp; The script tool is stored in the same tool box (different tool set) than the individual components.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to run the script tool successfully it seems I have to explicitly load the toolbox (arcpy.ImportToolbox(&amp;lt;name&amp;gt;.tbx)) even though Im running the script from the tool box that is already loaded in the current ArcMap document/session.&amp;nbsp; If I dont load it, I get the following error (the RskPreA_rarr is the name of my first model/tool)&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/446814_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not that it is a big deal to load the toolbox, but this seems like rather odd behavoir that I dont recall happening before in other things Ive done.&amp;nbsp; Any insights on what is happening or if I am setting up something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Neal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2019 16:05:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/loading-toolbox-within-script-tool-for-use-with/m-p/768085#M1346</guid>
      <dc:creator>NealBanerjee</dc:creator>
      <dc:date>2019-05-08T16:05:00Z</dc:date>
    </item>
  </channel>
</rss>

