Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Retrieve Pump Station results #13576
    Carlos_MartinezG
    Participant

    Hi Chris Thanks again, I checked the geo file and the pump info its almost at the end but I dont see and Node ID.

    Just to test the Output_NodeOutput I create a dummt projecto with one pump station ( I attached it) and then a I wrote the following program to test it using the var code 247 for pumping head. Im getting in return 3.402823E+38, I try changing the Node ID, the Profile ID but I keeep getting the same number, I should be getting 2 m.

    If you know what can i do o what Im doing wrong Ill appreciate it Chris.

    Sub RunRAS()

    ‘Instantiate a new HECRASController Class
    Dim HRC As New HECRASController
    ‘Open a new project.
    Dim strRASProject As String
    strRASProject = “C:\Users\CARLOS\Documents\HEC Data\RC_Pumps\RCpumps.prj”
    HRC.Project_Open strRASProject

    ‘Run the HEC-RAS Project
    Dim lngMessages As Long

    Dim strMessages() As String
    HRC.Compute_CurrentPlan lngMessages, strMessages()

    Dim PH As Single

    PH = HRC.Output_NodeOutput(1, 1, 1, 0, 1, 247)

    MsgBox PH

    HRC.QuitRas

    End Sub

    Carlos M

    RCpumps.zip

    in reply to: Retrieve Pump Station results #13574
    Carlos_MartinezG
    Participant

    Hi Chris Thank you for the answer, yes I was checking it on your book, but I have a doubt, what should I put for the node and the updn arguments?

    What if I have more than 1 pumping station?

    Thanks

    Carlos

Viewing 2 posts - 1 through 2 (of 2 total)