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.

Example

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

DoesObjExist / */Satellite/ers1

ReturnMessage

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

STK Programming Interface 11.0.1