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.

Use the SetConstraint command to turn constraints On and Off for Area and Line Targets and also to set parameters for these constraints. The following tables list valid values for {ConstraintName} as well as the parameters accepted for each. You can only set one constraint with each SetConstraint command.

Basic constraints

The following Basic constraints are valid for both area and line targets:

{ConstraintName}<Parameters>
ElevationAngle{Off | <Value>}

For <Value>, enter the minimum elevation angle in degrees.

LineOfSight{On | Off} [ExcludeIntervals | IncludeIntervals]

Geometry constraints

The following Geometry constraints are valid for both area and line targets:

{ConstraintName}<Parameters>
Altitude{Off | Min <Value1> Max <Value2>}

The following Geometry constraint is valid for area targets only:

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

You can constrain access to the entire AreaTarget or LineTarget object, rather than to any part of it. To set this option, see the SetAccessOption command.

Analysis Workbench constraints

Analysis Workbench 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 Analysis Workbench constraints.

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.

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

12.9