I am trying to develop a VB script using the Controller to extract the storm stage at each cross section just before the breach occurs at the dam. It is straight forward to extract the initial stage at profile #2. However, I need the stage at profile (n). I was thinking of two different ways to approach this. One is to call up a user form with all the profiles and stages and ask the user to select the initial stage at the cross section just below the dam. then knowing which profile number was selected, tell VB to extract this stage for all XS in the model. Or, using Max.Application find the max stage and somehow find the profile # that goes it this stage and then subtract (y) time steps to get the storm initial stage before the breach.
My problem is I’m not sure how to return the profile # in either case. Does anyone know how, given a selected stage to return the profile # that goes with it?