Skip to main content
The following sample code illustrates how to create a simple example.
  • The example was created using “Ansys installed path/Motion/Document/Drive Train Models.zip”.
  • Refer to the ‘resultfilereader.py’ file in the ‘Ansys installed path/Motion/Document/Postprocessor API for Python.zip’ file.

Create a Coordinate System

The Coordinate system can be created from various entities in the result as below, and this example describes how to create the Coordinate System.
  • Rigid Body
  • FE Node
  • Marker

Plot

It is the simplest example of a Python script to print plot data. Plot

Contour Export

Export contour results to a file

Vector Export

Export vector results to a file

Get Vector

Get results from the Vector.