Tutorials, Code Samples, Code Snippets, and Online Resources
Tutorials
| 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 only these changes: 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. For the source code (given in C# and Visual Basic.NET) for this tutorial, see: ObjectModelTutorial.txt. |
| STK Object Model tutorial in C#, Java, MATLAB, and Python | This tutorial demonstrates how to build six different applications types using five different programming languages while covering all major parts of the STK Object Model (STK OM). |
| 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. For the source code (given in C# and Visual Basic.NET) for this tutorial, see: 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. For the source code (given in C# and Visual Basic.NET) for this tutorial, see: 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. |
| 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 (PDF) 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. |
Code Samples
Code samples that demonstrate various ways to automate and extend the STK application or build custom applications in various development environments (C#, C++, Visual Basic, Java, MATLAB, Perl, Python, VBScript, JScript) are shipped with STK.
A full listing of available samples, their function, and location in the install are provided in separate sections. Code samples are organized according to their function in the install. Use the links below to jump to a particular area of interest.
- Automation Code Samples
- Custom Application Code Samples
- Extensibility Code Samples
- Containerization Samples
For the Visual Studio samples, the solution and project files are in Visual Studio 2019 and Visual Studio 2022 formats. All file names contain "_VS2019" or "_VS2022", indicating the format type.
Code Snippets
The following code snippets demonstrate tasks that are commonly encountered when working with the STK Object Model:
The following code snippets demonstrate tasks that are commonly encountered when working with Connect using MATLAB.
Online Resources
For a one-stop shop that includes the following, go to support.agi.com.
Discussion forums for asking questions and engaging in conversations with users in the community as well as AGI developers
Supporting STK Data for downloading example STK scenarios, AGI Data Disc, Satellite databases, and 3D models
Code Samples, including snippets, written by AGI staff or contributed by users
Frequently Asked Questions with answers found here