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

System requirements

The Operation API uses the IronPython 2.7.12 engine. Since the engine is included within the Motion Postprocessor, no additional installation is required.

Notes

  • As shown in the figures below, to create curves using the Operation API, you need to know the following information. When you see the “AddCurves” function within the UI, you can observe Characteristics and Components. The combination of these paths(Characteristics, Components) can be used as input values within the function “AddCurves”
Notes

How to execute Operation API

For executing operations, Import file includes Python script as follows :
  • Make the file includes operation script.
  • Import the file on Postprocessor.(Dropdown menu -> Import -> Python Script)
Import Python Script

Example

The Operation API can manage tasks from start to finish, centered around the ApplicationHandler class. This class implements the main functionlities of the API and helps users controls the entire flow, including the initialization and termination of the API. By using the ApplicationHandler class, you can gain a comprehensive understanding of the overall behavior of the API and efficiently handle the necessary tasks.
  • To use the Operation API, you can conveniently develop by refering to the following guidlines.
  • Refer to operationapi.py in “Ansys installed path/Motion/Document/Postprocessor API for Python.zip”
  • The result file used here is based on the output from the ‘Install_Path\Motion\Document\Pre and Post Processor.zip’ file.
  • Create a example.py file

See also