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

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} [ExcludeIntervals | IncludeIntervals]
Altitude{Off | Min <Value1> Max <Value2>}

The following basic constraint is valid for area targets only:

{ConstraintName}<Parameters>
DistanceFromATBoundary{Off | Min <Value1> Max <Value2>} [ExcludeIntervals | IncludeIntervals]

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.

Examples

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

SetConstraint */AreaTarget/GothamCity ElevationAngle 20.0

Return message

Group membership

This command belongs to the following group(s):

Area Targets

Line Targets

Version

10.0.1