Python-Based Plugins

The following topics cover the custom integration version 2024 R2. It is currently the only version Ansys recommends for writing new integration plugins. Documentation for previous versions can be found in the help content of optiSLang 2024 R1 and earlier.

Python-based node plugins are written in Python and coded against a Python API offered by optiSLang. The API is written in C++. This creates interacting modules as shown in the following image.

You implement a set of functions in the Python code of the plugin. By calling function after function, optiSLang can drive the sequence of work steps. As the layer of Python functions in direct contact with optiSLang must be coded against the optiSLang plugin interface, the design (signature) of this layer of functions must follow strong conventions, while the other parts of your plugin code can be freely designed.