Python for use with the STK Object Model
- May 10, 2016
- Tech Tip
- STK Integration
Python is an object-oriented, high-level programming language with dynamic data types, modules, and classes which make it easy for non-programmers to quickly get started automating and controlling STK from scripts. Because Python is free, your code can run everywhere, it works on both for Windows and Unix.
Python benefits include…
- Easy to read syntax
- Built in data structures
- Extensive standard libraries available for free for all major platforms
- Source code is open for modification
As with other development environments Python can be used for STK Automation, Custom Engine applications, and creating scripts to control specific plugin points for constraints and engine models.
For STK users that aren’t programmers Python is ideal because it’s easy to read, free, and object oriented, and it doesn’t require type casting between STK Object Model Interfaces (similar to Matlab). Further, most of the Matlab Code Snippets can be translated into Python with little or no edits. Python is also a good choice for cross platform development, the current release of STK Engine for Unix is only available for Java but Linux will follow in future. If you have project that calls for it we’d like to hear about it.
STK benefits include…
- Free alternative to Matlab
- No casting like with .NET (CSharp/VB)
- Portability across platforms
The steps to get started and a code sample can be found in article Getting Started STK COM integration using Python.