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 MATLAB for STK Automation 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 This tutorial is the object model equivalent to the STK GUI Tutorial. Click here for the source code given in C# and Visual Basic.NET for this tutorial.
Coverage Tutorial Using the Object Model 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. Click here for the source code given in C# and Visual Basic.NET for this tutorial.
STK Viewer -Embedded Viewer Tutorial This tutorial provides an example of how to embed an STK Viewer window in an HTML page. The example page can be viewed by anyone with a web browser and a registered copy of STK Viewer. This tutorial presumes experience with HTML and some knowledge of VBScript or scripting in general.
STK Astrogator Tutorial Using the Object Model This tutorial is the object model equivalent of the Hohmann Transfer Using the Targeter GUI exercise.
Build a UI Plugin tutorial Demonstrates how to create a sample user interface (UI) plugin in C#.
Integrating & Customizing STK with Plugin Scripts 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 user created events. These tutorials are available in the programming languages listed below.

C#

MATLAB with GUIDE

Visual Basic.NET

STK Java API