Skip to main content
The Ansys Motion Standalone Preprocessor C# library can be used in the python code by using Python.NET or IronPython.

System requirements

If you are using CPython, you will need to install Python.NET first.
It’s a good idea to add the Motion\bin directory to your PATH environment variable. You can do this in the Python code as follows:

The API class

The Ansys Motion Standalone Preprocessor C# library supports the headless application interface. The API class allows you to use it.

The Session Class

All operations of the Ansys Motion Standalone Preprocessor must be called within the Session in the following way:

Disable History

It is highly recommended to disable the History Manager when using the headless application interface.

Example

The following sample code illustrates how to create and analyze a simple free-fall model:

See also