--create --dependency
Creates a dependency for a Scenario.
Tip
Use --list --dependencies to see the current dependencies and their relative priorities. reference
Syntax
--create --dependency [argument, argument, ...]
Arguments
--lib=name
The Library file name.
--sid=id
The ID of the parent Scenario.
--did=id
The ID of the dependency Scenario.
--pri=value
An optional priority for the new dependency. If omitted, the dependency will have the highest priority.
Remarks
The value for the priority can be any integer, but the system will ultimately assign relative priorities to each dependency starting with a priority of 1 (the highest). For example, if a parent Scenario has dependencies on the Scenarios 5, 3, and 4 in priority order then --list --dependencies will show:
ID | Name | Priority |
---|---|---|
5 | Scenario-5 | 1 |
3 | Scenario-3 | 2 |
4 | Scenario-4 | 3 |
If you were to then create a new dependency on Scenario 6 with a priority of 3 the then --list --dependencies will show:
ID | Name | Priority |
---|---|---|
5 | Scenario-5 | 1 |
3 | Scenario-3 | 2 |
6 | Scenario-6 | 3 |
4 | Scenario-4 | 4 |
Note that Scenario 6 now occupies the priority 3 position and Scenario 4 has been moved to the priority 4 position.
Examples
For the parent Scenario 123, create a dependency with a priority of 2 on Scenario 345 in the Library mylib.ssim:
SyncroSim.Console.exe --create --dependency --lib=mylib.ssim --sid=123 --did=456 --pri=2