Hi, I'm running ArcHydro 2.0.15 on ArcGIS Pro 2.3 and I get the following error when I try the Adjust Flow Direction In Lakes tool.
('line 258', 'c:\\program files\\arcgis\\pro\\Resources\\ArcToolbox\\Scripts\\ArcHydro\\adjustflowdirectioninlakes.py', "UnboundLocalError: local variable 'listtodel' referenced before assignment")
What correction should I make to the code?
Thanks
Brian
You probably do not have any lake and the listtodel variable was not initialized early enough in the code.
I will fix it but you can add the line
listtodel=[]
in the execute function just after:
sOK = apwrutils.C_OK
Christine