STK Programming Tutorials

The STK Programming Help offers a wide variety of options to automate and customize the Ansys Systems Tool Kit® (STK®) digital mission engineering software and to integrate its technology into other applications. Additional options enable you extend the STK software using plugins, interface to the STK application externally through COM and scripting interfaces, and develop custom applications.

Once you are Level 1 - STK Certified and have completed Comprehensive training (the Level 1 - Beginner and Level 2 - Advanced tutorials), you will be well prepared to integrate and automate the STK application and to take the Level 2 - STK Master Integration Certification test.

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 the STK application. This tutorial is written for Windows, but you can use it 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 Object Model Tutorial This tutorial demonstrates how to build six different application types using four different programming languages (C#, Java, MATLAB, and Python) while covering all major parts of the STK Object Model (STK OM).
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 the STK application, and summarizes the pros and cons of each scripting language.
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 prebuilt UI Plugin template that they can use a base to creating their UI Plugins.
STK Engine tutorials

These are 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)

Code Samples | Code Snippets | Online Resources