Okay, got it! The following code is working in C# (with a reference to the HECRASController):
hrc = new HECRASController();
int nmsg = 0;
bool block = true;
Array sa = null;
hrc.Project_Open(“[path]”);
hrc.Compute_ShowComputationWindow();
try
{
hrc.Compute_CurrentPlan(ref nmsg, ref sa, ref block);
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
}
hrc.Project_Save();
hrc.Project_Close();
hrc.QuitRas();
The System.Array has to be nulled for Compute_CurrentPlan() to accept it (confirmed by Caleb Buahin who wrote the RCAFF application in C#).