<?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 tool in python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/calling-custom-tool-in-python/m-p/246644#M19117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the 'ConcaveHull' custom toolbox, and it works when I run it on an individual shape file but I am trying to run it in a loop, that references a list. I have run the loop with other tools and the loop works, and I have ensured that the name and label of the toolbox are identical in order to remove that confusion. I am receiving an error:&lt;/P&gt;&lt;P style="color: #ee2200; font-size: 10px;"&gt;Failed to execute. Parameters are not valid.&lt;/P&gt;&lt;P style="color: #ee2200; font-size: 10px;"&gt;ERROR &lt;SPAN style="color: #042fef;"&gt;000732&lt;/SPAN&gt;: Input Points: Dataset "Bowie.shp" does not exist or is not supported&lt;/P&gt;&lt;P style="color: #ee2200; font-size: 10px;"&gt;Failed to execute (ConcaveHull).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried running the loop without the '.shp' extension but that makes no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;outpathbase = "Y:/Desktop/ARCGIS/Muller_etal_2016_AREPS/Muller_etal_AREPS_Supplement/MFCat2/Collide_Notpython/ConcaveHull/"&lt;/P&gt;&lt;P&gt;arcpy.ImportToolbox("Y:\Desktop\ARCGIS\Toolboxes\ConcaveHullByCase\ConcaveHullByCase.tbx")&lt;/P&gt;&lt;P&gt;list = ['Amsterdam', 'Bowie'];&lt;/P&gt;&lt;P&gt;for var in list:&lt;/P&gt;&lt;P&gt;print var&lt;/P&gt;&lt;P&gt;plume = '"' + var + '.shp' + '"'&lt;/P&gt;&lt;P&gt;print plume&lt;/P&gt;&lt;P&gt;outpath = '"' + outpathbase + var + 'Concave2' +'"'&lt;/P&gt;&lt;P&gt;arcpy.ConcaveHull(plume,"10",outpath,"#","#")&lt;/P&gt;&lt;P&gt;print outpath&lt;/P&gt;&lt;P&gt;print "complete"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, here is the link to the Toolbox written by Richard Fairhurst:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/servlet/JiveServlet/download/54704-1-156235/ConcaveHullByCase.zip"&gt;ConcaveHullByCase.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Dec 2016 19:46:02 GMT</pubDate>
    <dc:creator>MichaelFletcher1</dc:creator>
    <dc:date>2016-12-22T19:46:02Z</dc:date>
    <item>
      <title>calling custom tool in python</title>
      <link>https://community.esri.com/t5/python-questions/calling-custom-tool-in-python/m-p/246644#M19117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the 'ConcaveHull' custom toolbox, and it works when I run it on an individual shape file but I am trying to run it in a loop, that references a list. I have run the loop with other tools and the loop works, and I have ensured that the name and label of the toolbox are identical in order to remove that confusion. I am receiving an error:&lt;/P&gt;&lt;P style="color: #ee2200; font-size: 10px;"&gt;Failed to execute. Parameters are not valid.&lt;/P&gt;&lt;P style="color: #ee2200; font-size: 10px;"&gt;ERROR &lt;SPAN style="color: #042fef;"&gt;000732&lt;/SPAN&gt;: Input Points: Dataset "Bowie.shp" does not exist or is not supported&lt;/P&gt;&lt;P style="color: #ee2200; font-size: 10px;"&gt;Failed to execute (ConcaveHull).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried running the loop without the '.shp' extension but that makes no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;outpathbase = "Y:/Desktop/ARCGIS/Muller_etal_2016_AREPS/Muller_etal_AREPS_Supplement/MFCat2/Collide_Notpython/ConcaveHull/"&lt;/P&gt;&lt;P&gt;arcpy.ImportToolbox("Y:\Desktop\ARCGIS\Toolboxes\ConcaveHullByCase\ConcaveHullByCase.tbx")&lt;/P&gt;&lt;P&gt;list = ['Amsterdam', 'Bowie'];&lt;/P&gt;&lt;P&gt;for var in list:&lt;/P&gt;&lt;P&gt;print var&lt;/P&gt;&lt;P&gt;plume = '"' + var + '.shp' + '"'&lt;/P&gt;&lt;P&gt;print plume&lt;/P&gt;&lt;P&gt;outpath = '"' + outpathbase + var + 'Concave2' +'"'&lt;/P&gt;&lt;P&gt;arcpy.ConcaveHull(plume,"10",outpath,"#","#")&lt;/P&gt;&lt;P&gt;print outpath&lt;/P&gt;&lt;P&gt;print "complete"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, here is the link to the Toolbox written by Richard Fairhurst:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/servlet/JiveServlet/download/54704-1-156235/ConcaveHullByCase.zip"&gt;ConcaveHullByCase.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 19:46:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calling-custom-tool-in-python/m-p/246644#M19117</guid>
      <dc:creator>MichaelFletcher1</dc:creator>
      <dc:date>2016-12-22T19:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: calling custom tool in python</title>
      <link>https://community.esri.com/t5/python-questions/calling-custom-tool-in-python/m-p/246645#M19118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your full code?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 20:16:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calling-custom-tool-in-python/m-p/246645#M19118</guid>
      <dc:creator>BenjaminMittler</dc:creator>
      <dc:date>2016-12-22T20:16:57Z</dc:date>
    </item>
  </channel>
</rss>

