SWMM5 Add-in Tools Output File In Use

I'm attempting to use the add-in tools capability within SWMM5 to extract data from the binary output file using the $OUTFILE macro. However, the temporary SWMM output file passed to the external program is still in use by EPASWMM5.exe and is therefore inaccessible. This can be tested by attempting to send the $OUTFILE to any editor, such as Notepad.exe. I've tried enabling the two options "Disable SWMM while executing" and "Update SWMM after closing" but neither resolves the issue. Any suggestions?

You need to be a member of SWMM 5 or SWMM or EPASWMM and SWMM5 in ICM_SWMM to add comments!

Join SWMM 5 or SWMM or EPASWMM and SWMM5 in ICM_SWMM

Email me when people reply –

Replies

  • I just tried this with a text editor tool and got this message - is this the same as the one you are getting?

    3293141293?profile=original

    I made a change and now I can edit the file in a text editor, make changes and have my changes seen in the SWMM 5 GUI

    3293144563?profile=RESIZE_1024x1024

  • I looked through the code provided below as well as the remaining GUI code provided on the EPA SWMM website. Unfortunately I don't have much background with Pascal, not having used it since college or high school, and I don't have a Delphi IDE, nor could I locate a plugin for Pascal for use in Visual Studios. It does not look like the issue is in the Utools code except that the routine GetTmpOutFileName uses an existing TempOutputFile if present. The main GUI code creates and uses a TempOutputFile. I suspect there is a procedure that opens the file for use and never closes before continuing. Is this something that Lewis Rossman may be able to assist with?

This reply was deleted.