Component Object Model (COM) Interface
The STK Scheduler COM interface allows you to send STK Scheduler connect commands directly to STK Scheduler programmatically. This interface does not require the STK Integration module.
Each time a command is sent, Scheduler returns a string describing the status of the command. If successful the return value will be: "0, Success". If unsuccessful the return value will be a "-1," followed by an error message (e.g., "-1, Invalid Command Format")
Command Logging
For each COM command received, an entry will be made into the STK Scheduler Log. Any command formatting errors will be recorded in the log along with information about the nature of the error.
Example Programs
The following example programs use the COM interface. They can be found in the C:\Program Files\AGI\STK 12\STKScheduler\Examples\COM directory, with their subfolder referenced in the table below
Language | Subfolder |
---|---|
Access | Access |
C# | Csharp |
Excel | Excel |
JavaScript | Javascript |
Python | Python |
Visual Basic .NETclient | VBNet |
Visual Basic | VBscript |
STK Engine | STKEngineSchedulerExample |
A readme file is included with each code sample.
All file locations are based on the default Scheduler install location. Directory paths may change if you have installed in a non-default location.