I just got your book and am looking forward to learning all the info inside. To start, I want to use the controller to step through and run various hec models in different folders one after the other. I set a script to do this, and it is close to working, but with one problem.
The first model runs, but then it is waiting for me to press the “close” button after it completes. (Excel says “Excel is waiting for another application to complete an OLE action”) If I manually press close, the script does continue and runs the next model.
So, I’d like to add a line to have the script close the model. In the book, there are several examples that use the code:
‘Close HEC-RAS
RC.QuitRAS
However, when I try this line in my script, it is not recognized. It is also not shown as a command option in the drop down list when I start typing RC… Based on the response to another question, is this command only valid in 5.0 (I am using hec version 4.1.0)? Is there another way to close a model via script? That would be so helpful.