Set a constraint for an area target or line target
SetConstraint <ObjectPath> {ConstraintName} <Parameters>
Warning: Caution should be exercised when turning a constraint Off, in that any previously set constraint values may be lost. These cannot be recovered when the constraint is subsequently turned On.
The SetConstraint command turns constraints On and Off for Area and Line Targets, and also sets parameters for the constraints. The following Tables list valid values for {ConstraintName} as well as the parameters accepted for each. Only one constraint can be set with each SetConstraint command.
The following basic constraints are valid for area and/or line targets:
{ConstraintName} | <Parameters> |
---|---|
ElevationAngle | {Off | <Value>} |
LineOfSight | {On | Off} |
Altitude | {Off | Min <Value1> Max <Value2>} |
Access can also be constrained to the entire AreaTarget or LineTarget object, rather than to any part of it. To set this option see the SetAccessOption command.
Temporal constraints for area targets and line targets are identical to that of vehicles. Visit Connect help for the SetConstraint (Vehicles) commands for a complete list of valid temporal constraints.
Vector constraints for area targets and line targets are identical to that of vehicles. Visit Connect help for the SetConstraint (Vehicles) commands for a complete list of valid vector constraints.
To set the minimum elevation angle constraint for the Gotham City area target to 20 degrees:
SetConstraint */AreaTarget/GothamCity ElevationAngle 20.0
If activated, Connect returns an acknowledgement message.
This command belongs to the following group(s):
10.0.1
STK Programming Interface 11.0.1