SWMM 5 Interface Guide Tips

SWMM 5 Interface Guide Tips


SWMM 5 has a Interfacing guide on for creating a VB, Delphi or command line C program to both run and printout some of the output file results from SWMM 5.   The readme file is self explanatory in the file but here are a few tips for those of you who want to compile the InterFaceGuide C code in a Executable file for Windows.


1.   The first step is to make a new console program in Visual Studio


2.   The second step is to add the files swmm5.h, swmm5_iface.h, swmm5_iface.c, test.c to the project header and source files.

3.   Next add the file swmm5.lib as an additional dependency along with the directory name.




4.   If you want to save the .out and .rpt files then you must comment out the remove statements at the end of test.c



5.   You need to make a batch file to both run and save the input and output files from SWMM 5,

6.   The file swmm5.dll must be in the same directory as the created interface executable file,

7.   It will help you see the intermediate output if you add a pause statement in the batch file to hold the fprintf statements on the screen for you to view.






via Blogger

Categories: InfoSWMM, SWMM5

Tagged as:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s