Description | Example | Return Message | Group

SetConstraint (Planets & Stars)

Set a constraint for a planet or star

Syntax

SetConstraint <ObjectPath> {ConstraintName} {State}

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.

Only one constraint can be set with each SetConstraint command.

Basic Constraints

LineOfSight is the only basic constraint available for planets and stars. {State} can be On or Off.

Vector Constraints

Vector constraints for planets and stars are identical to that of vehicles. Visit Connect help for the SetConstraint (Vehicles) command for a complete list of valid vector constraints.

Example

To set the line of sight constraint On for Jupiter:

SetConstraint */Planet/Jupiter LineOfSight On

ReturnMessage

If activated, Connect returns an acknowledgement message.

Group Membership

This command belongs to the following group(s):

Stars & Planets

Version

5.0.3

STK Programming Interface 11.0.1