Return the path of the selected directory.
GetDirectory <ApplicationPath> {DirOption}
The GetDirectory command returns the path of the directory specified by the {DirOption}. The following table describes the values for {DirOption}.
{DirOption} | Description |
---|---|
DefaultUser | Returns the default user data directory. |
UserData | Returns the current user data directory. In STK Help this is indicated by <STK user area> |
STKHome | Returns the STK install folder. |
Config | Returns the user's configuration directory. |
Scenario | Returns the current Scenario directory.
Note: This option will Nack if a Scenario has not been created. |
AllUsers | Returns the directory that contains STK application data for all users. In STK Help this is indicated by <STK all users area> |
Database {Satellite | City | Facility} | Returns the specified database
directory.
The options: Satellite, City and Facility are case sensitive. Note: The City and Facility options will Nack if a Scenario has not been created. |
To return the path of the default user directory:
GetDirectory / DefaultUser
C:\Users\stkUser\Documents\STK 11
To return the path of the Facility database:
GetDirectory / Database Facility
C:\ProgramData\AGI\STK 11\Databases\Facility
This command belongs to the following group(s):
9.2.1
STK Programming Interface 11.0.1