<?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 Calling custom tools within a python toolbox in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/calling-custom-tools-within-a-python-toolbox/m-p/520657#M40807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have created several custom Python toolboxes with several tools in each toolbox. Within the execute method of a tool, I am able to call tools from another toolbox using the tool syntax (arcpy.tool_toolboxalias). But when I try to call a tool from a tool that is in the same toolbox, I get this error- &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: Object: Tool or environment &amp;lt;Tool_toolboxalias&amp;gt; not found&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error does not show up consistently. Sometimes the tool will work, and then after not changing any code I will get the error again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried importing the toolbox that I am working in (I would think that would not be necessary).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone else had this problem? Are you supposed to be able to call a tool from within the same toolbox? Should I be using OOP instead to call the execute method within the tool class?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jun 2013 14:09:20 GMT</pubDate>
    <dc:creator>KristenE</dc:creator>
    <dc:date>2013-06-06T14:09:20Z</dc:date>
    <item>
      <title>Calling custom tools within a python toolbox</title>
      <link>https://community.esri.com/t5/python-questions/calling-custom-tools-within-a-python-toolbox/m-p/520657#M40807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have created several custom Python toolboxes with several tools in each toolbox. Within the execute method of a tool, I am able to call tools from another toolbox using the tool syntax (arcpy.tool_toolboxalias). But when I try to call a tool from a tool that is in the same toolbox, I get this error- &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: Object: Tool or environment &amp;lt;Tool_toolboxalias&amp;gt; not found&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error does not show up consistently. Sometimes the tool will work, and then after not changing any code I will get the error again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried importing the toolbox that I am working in (I would think that would not be necessary).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone else had this problem? Are you supposed to be able to call a tool from within the same toolbox? Should I be using OOP instead to call the execute method within the tool class?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 14:09:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calling-custom-tools-within-a-python-toolbox/m-p/520657#M40807</guid>
      <dc:creator>KristenE</dc:creator>
      <dc:date>2013-06-06T14:09:20Z</dc:date>
    </item>
  </channel>
</rss>

