<?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: Problem importing ArcHydro toolbox in Water Resources Questions</title>
    <link>https://community.esri.com/t5/water-resources-questions/problem-importing-archydro-toolbox/m-p/200220#M946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks so much for the helpful advice. There was a problem with the ArcHydroTools.pth file: it was pointing to the wrong drive.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For anyone else with this same sort of problem: after importing ArcHydroTools, you can call tools with, for example, "ArcHydroTools.BuildWalls" rather than "arcpy.Buildwalls_archydro".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 May 2013 14:50:20 GMT</pubDate>
    <dc:creator>JacobCoble</dc:creator>
    <dc:date>2013-05-15T14:50:20Z</dc:date>
    <item>
      <title>Problem importing ArcHydro toolbox</title>
      <link>https://community.esri.com/t5/water-resources-questions/problem-importing-archydro-toolbox/m-p/200218#M944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a question regarding the proper use of the ImportToolbox command.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We're trying to import the ArcHydro toolbox in Python, but the script stops at the arcpy.ImportToolbox command. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's what we have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Load required toolboxes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ImportToolbox("W:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Arc Hydro Tools.tbx", "archydrotools")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We've tried using "archydro" and "ArcHydroTools" as aliases to no effect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We thought the spaces in the toolbox name might be causing the problem, so we copied the toolbox to a local drive, renamed it without spaces, but still no luck at importing the toolbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help you can provide!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 15:04:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/problem-importing-archydro-toolbox/m-p/200218#M944</guid>
      <dc:creator>JacobCoble</dc:creator>
      <dc:date>2013-05-13T15:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem importing ArcHydro toolbox</title>
      <link>https://community.esri.com/t5/water-resources-questions/problem-importing-archydro-toolbox/m-p/200219#M945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jacob,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check that there is a ArcHydroTools.pth recorded in the PYTHONHOME location, e.g. C:\Python27\ArcGIS10.1\Lib\site-packages&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It should point to the location of the installed ArcHydroTools, e.g.&amp;nbsp; C:\Program Files (x86)\ESRI\WaterUtils\ArcHydro\bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With that present and ArcHydroTools installed, should only need to "import ArcHydroTools"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a simple command line example, it dumps the "help" for all modules.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;gt;&amp;gt;&amp;gt;import ArcHydroTools&lt;BR /&gt;help(ArcHydroTools)&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I've captured and attached the output of that as a ZIP'd text file ArcHydroPythonHelp.txt which should be of help for using the ArcHydroTools in Python scripting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcHydroTools use in scripts will have syntax and file format requirements, NO ShapeFiles! And you will need to import your Desktop seat license level including Spatial Analyst extension, and also import the arcpy site library.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 20:46:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/problem-importing-archydro-toolbox/m-p/200219#M945</guid>
      <dc:creator>V_StuartFoote</dc:creator>
      <dc:date>2013-05-13T20:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem importing ArcHydro toolbox</title>
      <link>https://community.esri.com/t5/water-resources-questions/problem-importing-archydro-toolbox/m-p/200220#M946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks so much for the helpful advice. There was a problem with the ArcHydroTools.pth file: it was pointing to the wrong drive.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For anyone else with this same sort of problem: after importing ArcHydroTools, you can call tools with, for example, "ArcHydroTools.BuildWalls" rather than "arcpy.Buildwalls_archydro".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 14:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/problem-importing-archydro-toolbox/m-p/200220#M946</guid>
      <dc:creator>JacobCoble</dc:creator>
      <dc:date>2013-05-15T14:50:20Z</dc:date>
    </item>
  </channel>
</rss>

