Programming Tutorials

The STK Programming Interface offers a wide variety of options to automate and customize STK and to integrate its technology into other applications. Additional options let you extend STK using plugins, interface to STK externally through COM and scripting interfaces, and develop custom applications.

Tutorial Description
Using Java API from MATLAB to Start up and Control STK This tutorial demonstrates how to use Java API from within MATLAB to start up and control STK. This tutorial is written for Windows, but can be used for Linux with the only these differences: paths are slightly different and some desktop-specific UI jar files are not available.
Using MATLAB for STK Automation (PDF) This tutorial will enable you to write a script in MATLAB using both Connect and the Object Model to automate the following functions: create and populate a scenario, add terrain and imagery, generate random targets in an automated fashion, point a sensor at the random targets based on a minimum range, compute chain access, and view the mission.
STK Tutorial Using the Object Model (PDF) This tutorial is the object model equivalent to the STK GUI Tutorial. The source code (given in C# and Visual Basic.NET) for this tutorial is available in the file: ObjectModelTutorial.txt.
Coverage Tutorial Using the Object Model (PDF) This tutorial shows you how to use the STK Object Model to set up a simple coverage analysis, performing tasks for which you might otherwise use Connect or the STK GUI. The source code (given in C# and Visual Basic.NET) for this tutorial is available in the file: OM_CoverageTutorial.txt.
STK Astrogator Tutorial Using the Object Model (PDF) This tutorial is the object model equivalent of the Hohmann Transfer Using the Targeter GUI exercise. The source code (given in C# and Visual Basic.NET) for this tutorial is available in the file: AstrogatorObjectModelTutorial.txt.
Build a UI Plugin tutorial Demonstrates how to create a sample user interface (UI) plugin in C#.
Integrating & Customizing STK with Plugin Scripts (PDF) This tutorial introduces you to the STK plugin scripts. It covers the basic plugin structure, discusses how inputs and outputs are passed to STK, and summarizes the pros and cons of each scripting language.
Sending Connect Commands via COM This exercise takes (a simplified version of) the SendAConnectCommand HTML utility that will run inside STK, and converts it to a single integrated utility containing a Globe control.
PowerPoint Slide Show with 3D Animation This exercise takes you through the process of creating a PowerPoint slide with an embedded ActiveX component.
UI Plugin Template We have found that some users don't know we have a pre-built UI Plugin template that they can use a base to creating their UI Plugins.
STK Engine tutorials

Step-by-step tutorials to get you up and running with STK Engine including the basic steps of setting up the project, adding STK X controls, sending commands to STK X, and responding to events you create. These tutorials are available in the programming languages listed below.

C# (PDF)

MATLAB with GUIDE (PDF)

STK Java API (PDF)

Level 2: STK Master Integration Certification

After completing the STK Level 1 Certification, you have the skills to integrate and automate STK. The STK Master Integration Certification validates your ability to run STK with Python code through Jupyter Notebooks.

The following objectives are tested:

  • Running STK with Connect, STK Model, COM Interface
  • Finding information in the STK Programming Interface Help
  • Building and modifying an STK Scenario through Python Code
  • Extracting and analyzing data from an STK Scenario