The vanilla SCADE Python API
Most Ansys products come packaged with Python APIs (as part of the PyAnsys initiative). These open-source libraries allow engineers to interact programmatically with Ansys products, integrating them into their workflows. Ansys SCADE is no exception. Its Python API allows users to:- Walk through SCADE models and modify them using code
- Access generated artefacts (mapping files, test results, model coverage…)
Introducing ansys-scade-apitools
We are pleased to announce the release of ansys-scade-apitools, a Python package that extends the standard SCADE Python API.
Its goal is to make the SCADE API easier to use by adding a collection of high-level functions that accomplish complex operations without exposing low-level concepts to the user.
Key benefits are:
- Simplified configuration to run Python code from your preferred IDE.
- High-level, Pythonic APIs allow creating models, automatically handling intermediate elements and their consistency.
create: collection of functions for creating or updating SCADE models. This includes creating types, operators, interfaces and other constructs.expr: collection of functions for accessing expressions. This covers walking through a model’s operators and expressions.info: provides information on the current version of SCADE.prop: collection of functions for the storage of settings and properties.query: collection of queries about SCADE Suite types.
Some examples
The examples below illustrate a couple of the numerous functions exposed by API Tools. Example 1: accessing an If expression with a Python script (link)- SCADE Diagram:

- Python code:
- Output:
- Python code:
- Output:
