Or Start a new discussion
Has anyone tried setting routing out from an object based on a set of conditions? I tried to use function but hmmm, elas not working
Was this answer helpful?
Hi there Kym, Are you using SIMUL8 Professional or Basic? Indeed you can't change Routing out discipline for each Scenario, but if you're using Professional, how about you:
1. Use a global variable (gbl_Routing) as a decision variable in Scenario Manager and set its values to be equal to the number of Routing Disciplines you're switching between. E.g. if you change only between 3 disciplines the values of gbl_Routing to be 1-3.
2. On a Visual Logic section (e.g. Start Run because you're running Scenarios), check gbl_Routing's value and set Routing out discipline. E.g. IF gbl_routing = 1,
Set Route out Discipline Activity 1, Collect
ELSE IF gbl_routing =2
Set Route out Discipline Activity 1, Priority
Does this work for you?