Saturday, July 27, 2013

SWMM 5 Interface Guide Tips

SWMM 5 Interface Guide Tips

SWMM 5 has a Interfacing guide on http://www.epa.gov/ednnrmrl/models/swmm/index.htm#Downloads 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 http://www.epa.gov/ednnrmrl/models/swmm/swmm5_iface.zip 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.





No comments:

InfoSWMM Version Numbers and the version of Arc Map they use and which EPA SWMM5 Engine is used for Each InfoSWMM Version

 InfoSWMM Version Numbers  InfoSWMM Version 14.7  Update 3 for Arc Map 10 to 10.8 and Windows 7/8/8.1/10 - EPA SWMM 5.1.014   4/12/2020   ...