Adding New View Variables To the SWMM 5 Delphi and C Code
Subject: Adding New View Variables To SWMM 5 for Villemonte Correction for Downstream Submergence. A simple seven step procedure to modify the SWMM 5 GUI Delphi Code and the SWMM 5 C code. Step 1: Add a new View Variable to the SWMM 5 GUI Delphi code UGLOBAL.PAS You need to add a new variable name (LINKVILLEMONTE) and increase the index number of LINKVIEWS LINKVILLEMONTE = 48; //Output // (5.0.022 - RED) LINKQUAL = 49; //Output // (5.0.022 - RED) LINKVIEWS = 48; //Max. display variable index // (5.0.022 - RED) Step 2: Add a new BaseLinkUnits description to the SWMM 5 GUI Delphi code UGLOBAL.PAS ('',''), // Villemonte Correction // (5.0.022 - RED) ('mg/L','mg/L')); // Quality Step 3: Add a new Link View Variable SourceIndex description to the SWMM 5 GUI Delphi code Viewvars.txt ...