Have a couple child scenarios, and wish to add a portion to the trip generation script file that only runs if the current scenario is scenario 1 for example. Do all child scenarios share the script files with the base scenario?
Ive made calls to integer keys, but was wondering if this can be carried over to scenario name
edit: got it to work by specifying integer catalog key for indiv scenarios, but is there any call for specific scenarios?
All scenarios use the same script files. The only difference between scenarios is the change in catalog keys that the user defines.
Scenario names are automatic catalog keys so you can refer to them in the script by one of the following:
Note: you can find these by right-clicking in the script and selecting 'Catalog Keys'.
However, it's not great practice to hard-code names into scripts so alternatively, you could create a catalog key e.g. "Run extra Trip Generation code?" with the values 0 and 1 (default zero for base scenario and change to 1 for child scenarios) then make the code run for 1 and not for 0.
Does that help?