Skip to Main Content

What’s New in 2025 R2: Ansys PySTK, a Python API for Ansys STK Software

8月 20, 2025

READ ALOUD

PAUSE READ

Cal Van Doren | Senior Application Engineer, Ansys, part of Synopsys
evtol-banner

As part of Ansys 2025 R2, the latest Python API for Ansys Systems Tool Kit (STK) digital mission engineering software is here: PySTK.

As STK software has developed over the years, the need to advance application programming interfaces (APIs) has increased. This has led to the first truly Python-specific API to drive STK workflows.

Previously, the only way to use the “Object Model,” STK software’s object-oriented API, in Python was through C# or Java. The initial Python examples used the win32com library. Then as we progressed,  we expanded Python’s “Object Model” code to be up to par with the offerings for other programming languages. In that time, integration with commonly used Python libraries like tkinter, plotly, pandas, and gRPC was also added.

STK 2024 R2 brought Ansys to a crossroads. The Python Object Model interface was on the same level as other languages like C#, Java, and MATLAB, but it still followed C# naming conventions. The introduction of PySTK includes a native implementation of the Python interface that follows Python’s naming conventions and scripting best practices. 

While the existing Python API is still available, PySTK is the future of Python scripting with STK software. To get started using this new API, click here. You can access the API documentation here. For a direct link to the downloadable .whl (or “wheel”) file that contains the API, click here.

The new API documentation also includes examples of Jupyter notebooks with embedded STK graphics. This is another example of the benefits of using a Python-native API like PySTK, rather than one simply adapted for Python like the previous Python API.

In addition to the Jupyter examples and code snippets, you can access the migration guide in PySTK documentation here. This is where you can find information on the API Migration Assistant, which can help automatically translate your scripts using the old Python API into PySTK scripts.

This PySTK release is also part of the overall PyAnsys effort that involves creating consistent Python APIs for all of Ansys’ tooling. With the rising prevalence of Python as a primary engineering scripting language, PyAnsys intends to provide a consistent experience across all Ansys tools.

urban-transport

PyAnsys shines in the following areas:

  • Workflow automation: PyAnsys enables users to automate repetitive or complex simulation tasks.
  • Integration with the Python ecosystem: Users can leverage the Python ecosystem.
  • Cross-product functionality: PyAnsys provides Python APIs for multiple Ansys services and products. By enabling users to interact with multiple products in a single environment, users can streamline their workflows.

In addition to PySTK, the PyAnsys effort has extended to many other Ansys solvers and enterprise tools. Learn more about PyAnsys and STK software today.

For more information, please visit this PyAnsys site.


Just for you. We have some additional resources you may enjoy.

TAKE A LOOK


Recommendations

Plan-S社、デジタルエンジニアリングを活用して新しい宇宙経済を拡大

Plan-S社、デジタルエンジニアリングを活用して新しい宇宙経済を拡大

Ansys, part of Synopsysが提供するシミュレーションを導入し、持続可能な宇宙技術を通じて現代社会の向上を目指すPlan-S社のミッションについてご紹介します。

Advanced Air Mobility: A Design Revolution

Advanced Air Mobility: A Design Revolution

Learn how Ansys Systems Tool Kit (STK) digital mission engineering (DME) software enables a new approach that helps address challenges for advanced air mobility.

Project Svarog Soars to New Heights With Ansys Simulation

Project Svarog Soars to New Heights With Ansys Simulation

Learn how, with help from Ansys, Project Svarog’s vision to be the first student team to send a spacecraft to the edge of the solar system is taking shape.

The Advantage Blog

The Ansys Advantage blog, featuring contributions from Ansys and other technology experts, keeps you updated on how Ansys simulation is powering innovation that drives human advancement.