Scripting

A script is a set of instructions to be issued to Ansys Workbench. The script can be a modified journal, or it can be a completely new set of instructions that you write directly.

Ansys Workbench uses an object-based approach. For scripting, some knowledge of object-oriented programming and the Python language is advantageous. For more information on using scripting, see Using Scripting in Ansys Workbench.

Ansys Workbench scripting is based on IronPython 2.7.4. Before attempting to write or modify Ansys Workbench scripts, you should be familiar with using this version of Python.

IronPython is well integrated with the rest of the .NET Framework (on Windows) and Mono CLR (on Linux) and makes all related libraries easily available to Python programmers while maintaining compatibility with the Python language. For more information on IronPython, see http://ironpython.net/.

IronPython is generally compatible with existing standard Python scripts. However, not all C-based Python library modules are available under IronPython, as discussed on the IronPython website.

For more information on Python, including a standard language reference, see http://www.python.org/.

For a complete list of Ansys-published data containers, namespaced commands, and data types, see the reference material later in this document.