<?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 Arc Hydro toolbox for a stand alone script in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/problem-importing-arc-hydro-toolbox-for-a-stand/m-p/1090954#M44701</link>
    <description>&lt;P&gt;I think I found a work around. Instead of importing the tool box and using that path to the tool I have a more direct path to the tools that I need. I imported the script file directly and follow the logic in the code block under "if(__name__=='__main__'):" and that seems to work. I'll have to confirm that it works for the other operations that I need to do.&lt;/P&gt;&lt;DIV&gt;Are there any problems moving forward in this manner?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;import drainagelineprocessing as d
oProcessor = d.DrainageLineProcessing()
oProcessor.bCallFromPYT = False
params = (r"H:\workspace\streamstats\02_post_editor\1501\15010005\strlnk", r"H:\workspace\streamstats\02_post_editor\1501\15010005\hydrodem_data.gdb\fdr", r"H:\workspace\streamstats\02_post_editor\1501\15010005\hydrodem_data.gdb\D3test", r"H:\workspace\streamstats\02_post_editor\1501\15010005\hydrodem_data.gdb\D3test_tbl")
tResults = None
tResults = oProcessor.execute(params, None)&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 20 Aug 2021 20:40:59 GMT</pubDate>
    <dc:creator>C__JustinMayers</dc:creator>
    <dc:date>2021-08-20T20:40:59Z</dc:date>
    <item>
      <title>Problem importing Arc Hydro toolbox for a stand alone script</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-importing-arc-hydro-toolbox-for-a-stand/m-p/1090626#M44656</link>
      <description>&lt;P&gt;I'm trying to use ArcGIS Pro's Arc Hydro toolbox in a stand alone script. I'm having difficulty importing the toolbox even when sitting in ArcGIS Pro's Python window.&amp;nbsp;&lt;SPAN&gt;I'm running ArcGIS Pro 2.8.1 and I have tried both the 2.8.1 and 2.8.6 versions of ArcHydro. I can run tools from the Arc Hydro tool box in ArcGIS Pro but I need to automate my process using a script.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="C__JustinMayers_0-1629408275129.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21218iF07A0806897BF00C/image-size/large?v=v2&amp;amp;px=999" role="button" title="C__JustinMayers_0-1629408275129.png" alt="C__JustinMayers_0-1629408275129.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV&gt;The error thrown suggests that code in the tool box has an extra quotation mark. I can't imagine it's that simple and even if it is, I'm not sure how to edit this toolbox. Any thoughts?&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 21:27:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-importing-arc-hydro-toolbox-for-a-stand/m-p/1090626#M44656</guid>
      <dc:creator>C__JustinMayers</dc:creator>
      <dc:date>2021-08-19T21:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem importing Arc Hydro toolbox for a stand alone script</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-importing-arc-hydro-toolbox-for-a-stand/m-p/1090954#M44701</link>
      <description>&lt;P&gt;I think I found a work around. Instead of importing the tool box and using that path to the tool I have a more direct path to the tools that I need. I imported the script file directly and follow the logic in the code block under "if(__name__=='__main__'):" and that seems to work. I'll have to confirm that it works for the other operations that I need to do.&lt;/P&gt;&lt;DIV&gt;Are there any problems moving forward in this manner?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;import drainagelineprocessing as d
oProcessor = d.DrainageLineProcessing()
oProcessor.bCallFromPYT = False
params = (r"H:\workspace\streamstats\02_post_editor\1501\15010005\strlnk", r"H:\workspace\streamstats\02_post_editor\1501\15010005\hydrodem_data.gdb\fdr", r"H:\workspace\streamstats\02_post_editor\1501\15010005\hydrodem_data.gdb\D3test", r"H:\workspace\streamstats\02_post_editor\1501\15010005\hydrodem_data.gdb\D3test_tbl")
tResults = None
tResults = oProcessor.execute(params, None)&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 Aug 2021 20:40:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-importing-arc-hydro-toolbox-for-a-stand/m-p/1090954#M44701</guid>
      <dc:creator>C__JustinMayers</dc:creator>
      <dc:date>2021-08-20T20:40:59Z</dc:date>
    </item>
  </channel>
</rss>

