<?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: HEC-GeoHMS: Importing HEC-GeoHMS Toolbox in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/hec-geohms-importing-hec-geohms-toolbox/m-p/93578#M7315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas, Unfortunately not. I kept getting error messages. Not sure if ESRI\USACE have added python support to HEC-GeoRAS. GeoRAS might not be supported in HEC-RAS 5 as they are building their own GIS functionality directly into HEC-RAS &amp;nbsp;to mitigate the need for HEC-GeoRAS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2017 10:38:45 GMT</pubDate>
    <dc:creator>PeterWilson</dc:creator>
    <dc:date>2017-01-30T10:38:45Z</dc:date>
    <item>
      <title>HEC-GeoHMS: Importing HEC-GeoHMS Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/hec-geohms-importing-hec-geohms-toolbox/m-p/93576#M7313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need assistance in importing HEC-GeoHMS Toolbox into Python. I haven't been able to find any examples of the correct syntax to import and use the tools within the HEC-GeoHMS Toolbox. The code below is based on export a model from ModelBuilder with one of the HEC-GeoHMS tools within it. It keeps telling me that there are no arguments. Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;'''
Created on Feb 1, 2016


@author: PeterW
'''
import arcpy


# import HEC-GeoHMS toolbox
arcpy.ImportToolbox(r"C:\Program Files (x86)\ArcGIS\Desktop10.2\ArcToolbox\Toolboxes\GeoHMS Tools.tbx")


# set input arguments
Subbasin = r"E:\Python\ModelBuilder\Model01.gdb\Layers\Watershed"
Centroid = r"E:\Python\ModelBuilder\Model01.gdb\Layers\Centroid"
LongestFlowPath = r"E:\Python\ModelBuilder\Model01.gdb\Layers\LongestFlowPath_2D"
Output_Centroidal_Longest_Flow_Path = r"E:\Python\ModelBuilder\Model01.gdb\Layers\CentroidalLongestFlowPath2"


# determine the centroidal longest flowpath
arcpy.AddMessage("Processing Centroidal Longest Flowpath")
arcpy.CentroidalLongestFlowpath_geohms(Subbasin, Centroid, LongestFlowPath, Output_Centroidal_Longest_Flow_Path) #@UndefinedVariable


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error message that I receive is attached below:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:34:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/hec-geohms-importing-hec-geohms-toolbox/m-p/93576#M7313</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2021-12-10T23:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: HEC-GeoHMS: Importing HEC-GeoHMS Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/hec-geohms-importing-hec-geohms-toolbox/m-p/93577#M7314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever resolve this? &amp;nbsp;i have the same need/problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 13:46:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/hec-geohms-importing-hec-geohms-toolbox/m-p/93577#M7314</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-01-26T13:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: HEC-GeoHMS: Importing HEC-GeoHMS Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/hec-geohms-importing-hec-geohms-toolbox/m-p/93578#M7315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas, Unfortunately not. I kept getting error messages. Not sure if ESRI\USACE have added python support to HEC-GeoRAS. GeoRAS might not be supported in HEC-RAS 5 as they are building their own GIS functionality directly into HEC-RAS &amp;nbsp;to mitigate the need for HEC-GeoRAS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 10:38:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/hec-geohms-importing-hec-geohms-toolbox/m-p/93578#M7315</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2017-01-30T10:38:45Z</dc:date>
    </item>
  </channel>
</rss>

