Description | Example | Return message | Group

DoesObjExist

Determine if an object or scenario is open in the current STK session

Syntax

DoesObjExist <ApplicationPath> <ObjectPath>

Description

The DoesObjExist command determine whether an object is included in the current scenario or whether a scenario is open in STK. This is useful when input is accepted from more than one location and objects could be changed or removed without your knowledge.

Examples

To find out whether the ERS1 satellite is included in the current scenario:

DoesObjExist / */Satellite/ers1

Return message

Connect returns an ASCII "1" if the object exists and ASCII "0" if it doesn't.
ACK DOESOBJECTEXIST 1 0

Group membership

This command belongs to the following group(s):

Scenarios

Version

4.0.2