You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any official documentation for HECRASController API?
For complex methods like Edit_QuasiUnsteadyFlowData(), how can we determine:
Required parameters
Expected data structures
Return values
Usage examples
Any guidance or documentation pointers would be greatly appreciated, as this would help others who are also working with the HEC-RAS automation interface.
I tried to to find out all possible api names,code above all possible apis like Edit_QuasiUnsteadyFlowData() :
import win32com.client
hec = win32com.client.Dispatch("RAS630.HECRASController")
attributes = dir(hec)
for attribute in attributes:
if not attribute.startswith("_"):
print(attribute)
The text was updated successfully, but these errors were encountered:
Unfortunately there is no official documentation for RASController and other APIs, despite years of advocacy to USACE HEC from the community. For simple APIs such as open project, run simulation, etc., it is easy to know how to use them. Others such as the one you mentioned, you will have to guess and try. In addition, HEC-RAS is a GUI-based app and not all operations are amenable to automation. The book from Chris Goodell might also have some more information, though it uses Excel VBA.
If you are to modify the unsteady flow data, another option for you is to directly modify the flow data file using Python script. Again, the problem is there is no documentation on the format of flow data files. You will have to guess again.
Unfortunately there is no official documentation for RASController and other APIs, despite years of advocacy to USACE HEC from the community. For simple APIs such as open project, run simulation, etc., it is easy to know how to use them. Others such as the one you mentioned, you will have to guess and try. In addition, HEC-RAS is a GUI-based app and not all operations are amenable to automation. The book from Chris Goodell might also have some more information, though it uses Excel VBA.
If you are to modify the unsteady flow data, another option for you is to directly modify the flow data file using Python script. Again, the problem is there is no documentation on the format of flow data files. You will have to guess again.
Good luck!
OK then. if i got any clue to use LLM to guess some api and datastructure and successed. i will share it to community~
Key questions:
Edit_QuasiUnsteadyFlowData()
, how can we determine:Any guidance or documentation pointers would be greatly appreciated, as this would help others who are also working with the HEC-RAS automation interface.
I tried to to find out all possible api names,code above all possible apis like Edit_QuasiUnsteadyFlowData() :
The text was updated successfully, but these errors were encountered: