0% found this document useful (0 votes)
93 views2 pages

HEC-RAS - Accessing From Another Program

HEC-RAS can be accessed programmatically from another program that supports ActiveX. HEC provides a sample Visual Basic client program that demonstrates how to initialize a HEC-RAS object, load and compute a project, plot and export results. The sample program exposes HEC-RAS methods through command buttons, with the code to load a project associated with the "Load Project" button. Developers may need to add a reference to the HEC-RAS 4.0 library when compiling similar client programs.

Uploaded by

Yudi Zulkarnaen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views2 pages

HEC-RAS - Accessing From Another Program

HEC-RAS can be accessed programmatically from another program that supports ActiveX. HEC provides a sample Visual Basic client program that demonstrates how to initialize a HEC-RAS object, load and compute a project, plot and export results. The sample program exposes HEC-RAS methods through command buttons, with the code to load a project associated with the "Load Project" button. Developers may need to add a reference to the HEC-RAS 4.0 library when compiling similar client programs.

Uploaded by

Yudi Zulkarnaen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

HEC-RAS Accessing from another Program

HEC-RAS is compiled as a server application and can be called from another


program that supports ActiveX. HEC has developed a sample client program that
demonstrates how to call the HEC-RAS server program. The sample program is written
in visual basic and shows how to:

Dimension a new HEC-RAS object


Load a specific project
Execute the computations
Plot Results
Export the computed results

The sample program window is shown below. The code for exposing the methods
is beneath each of the command buttons on the form. For example the code to load a
project is associated with the command button labeled Load Project.
You might have trouble with the server (HECRAS) reference when compiling this
program. Go to the Proejct menu in VB6 and select References menu item and
find version 4.0 of RAS and check it on.

You might also like