Description | Example | Return Message | Group

SetConstraint (Area & Line Targets)

Set a constraint for an area target or line target

Syntax

SetConstraint <ObjectPath> {ConstraintName} <Parameters>

Related Commands

Description

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.

Basic Constraints

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

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

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.

Example

To set the minimum elevation angle constraint for the Gotham City area target to 20 degrees:

SetConstraint */AreaTarget/GothamCity ElevationAngle 20.0

ReturnMessage

If activated, Connect returns an acknowledgement message.

Group Membership

This command belongs to the following group(s):

Area Targets

Line Targets

Version

10.0.1

STK Programming Interface 11.0.1