Set a constraint for a planet or star
SetConstraint <ObjectPath> {ConstraintName} {State}
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.
LineOfSight is the only basic constraint available for planets and stars. {State} can be On or Off.
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.
To set the line of sight constraint On for Jupiter:
SetConstraint */Planet/Jupiter LineOfSight On
If activated, Connect returns an acknowledgement message.
This command belongs to the following group(s):
5.0.3
STK Programming Interface 11.0.1