Skip to main content

Motion Standalone Postprocessor C# library 2026 R1

Interface IOperationsCSYSViewModel

Last update: 09.03.2026

Namespace: VM.Operations.Post.Interfaces
Assembly: VM.Operations.Post.dll

Interface representing information for the coordinate system view model.

public interface IOperationsCSYSViewModel

Examples

For an example that includes information about interfaces, see this example. To view the examples, refer to the location of the 'Install_Path\Motion\Document\Postprocessor API for Python.zip' file.

# IOperationsCSYSViewModel.py
import sys

# Get the current file's path and set the path for external modules.
current_dir = __file__.rsplit('\\', 1)[0]
external_modules_path = current_dir + '\\..\\..\\Modules'
sys.path.append(external_modules_path)

# Import necessary modules
from OperationAPI import *

# Start the headless application interface
applicationHandler = ApplicationHandler()

# Import result file
result_file_path = get_result_file_path()

# Set array about result file
filepaths = List[str]()
filepaths.Add(result_file_path)

# Open about result files
# This will open the result file in the application.
# When the result is first opened, a Page is created and an Animation View is created on that Page.
applicationHandler.AddDocument(filepaths)

# Get all created pages.
# This retrieves all pages created in the application.
pages = applicationHandler.GetPages()

findViews = list()
for page in pages :
    views = page.GetViews()
    animationViews = [view for view in views if view.ViewType == ViewType.Animation]
    for animationView in animationViews :
        if animationView.DocumentFilePath == result_file_path and animationView.AnalysisResultType == AnalysisResultType.Dynamics :
            findViews.append(animationView)

viewCount = len(findViews)
if viewCount > 0 :
    animationview = findViews[0]
    # Create a Coordinate System
    # Name - Set the name of instance.
    # ParentInfo - Specifies The path of an parent entity.
    animationview.CreateCoordinateSystem("Crank_CSYS", "Crank")
    animationview.CreateCoordinateSystem("Crank_CM_CSYS", "Crank/CM")
    animationview.CreateCoordinateSystem("FEBody_01_CSYS", "FEBody_01/Node/487")

    # Get instance of entity
    # The GetViewModelByName method retrieves the target by its name.
    csys = animationview.GetViewModelByName("Crank_CSYS")
    csys.FullName = "Crank_002_CSYS"
    csys.MarkerSize = 10
    csys.ParentInfo = "Crank_002"

    csys.TransformationOffsetPosition = Vector(0,10,0)
    csys.TransformationOffsetAngle = Vector(1,0,0)
    csys.TransformationOffsetRotationType = RotationTypes.FixedAngle
    csys.TransformationOffsetRotationAxis = RotationAxes.XYX

    if csys.IsVisibleLabel == True:
        csys.LabelTextColor = Colors.Red
        csys.IsVisibleLabelBackground = False
        csys.LabelBackGroundColor = Colors.Red

    if  csys.IsVisibleTrajectory == True:
        csys.TrajectoryColor = Colors.Red

    if csys.CurrentCoordinateSystemType == GeneralMarkerType.CYLINDRICAL:
        csys.CylindricalAxisR = CoordinateType.X
        csys.CylindricalAxisZ = CoordinateType.Y
    elif csys.CurrentCoordinateSystemType == GeneralMarkerType.SPHERICAL:
        csys.SphericalAxis1 = CoordinateType.X
        csys.SphericalAxis2 = CoordinateType.Y

# Get all created pages.
# This retrieves all pages created in the application.
pages = applicationHandler.GetPages()
for page in pages :
    page.Close()

# Close Document
applicationHandler.CloseDocument(result_file_path)

Properties

CurrentCoordinateSystemType

Gets or sets the type of the coordinate system.

GeneralMarkerType CurrentCoordinateSystemType { get; set; }

Property Value

GeneralMarkerType

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

This property allows you to set the type of the coordinate system. In the UI, this property is represented under the "Trajectory" category with the property name "Type". The available options are:

CylindricalAxisR

Gets or sets the Axis R value for a cylindrical coordinate system.

CoordinateType CylindricalAxisR { get; set; }

Property Value

CoordinateType

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

This property allows you to set the Axis R value for a cylindrical coordinate system. It is only applicable when the property is set to . In the UI, this property is represented under the "Transformation Information" category with the property name "Axis R". The available options are:

CylindricalAxisZ

Gets or sets the Axis Z value for a cylindrical coordinate system.

CoordinateType CylindricalAxisZ { get; set; }

Property Value

CoordinateType

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

This property allows you to set the Axis Z value for a cylindrical coordinate system. It is only applicable when the property is set to . In the UI, this property is represented under the "Transformation Information" category with the property name "Axis Z". The available options are:

FullName

Gets or sets the full name of the coordinate system.

string FullName { get; set; }

Property Value

string

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

Use this property to specify or retrieve the full name of the coordinate system.

IsVisible

Gets or sets a value indicating whether the marker is visible.

bool IsVisible { get; set; }

Property Value

bool

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

This property determines whether the marker is visible. In the UI, this property is represented under the "Marker" category with the property name "Visible".

IsVisibleLabel

Gets or sets a value indicating whether the label is visible.

bool IsVisibleLabel { get; set; }

Property Value

bool

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

This property determines whether the label is visible. In the UI, this property is represented under the "Label" category with the property name "Visible".

IsVisibleLabelBackground

Gets or sets a value indicating whether the background color of the label is visible.

bool IsVisibleLabelBackground { get; set; }

Property Value

bool

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

This property determines whether the background color of the label is visible. It only works when the property is set to true. In the UI, this property is represented under the "Label" category with the property name "Background Visibility".

IsVisibleTrajectory

Gets or sets a value indicating whether the trajectory is visible.

bool IsVisibleTrajectory { get; set; }

Property Value

bool

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

This property determines whether the trajectory is visible and subsequently whether the property is applied. In the UI, this property is represented under the "Trajectory" category with the property name "Visible".

LabelBackGroundColor

Gets or sets the background color of the label.

Color LabelBackGroundColor { get; set; }

Property Value

Color

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

This property allows you to set the background color of the label. The background color is only displayed when both the and properties are set to true. In the UI, this property is represented under the "Label" category with the property name "Background Color".

LabelTextColor

Gets or sets the font color of the label.

Color LabelTextColor { get; set; }

Property Value

Color

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

This property allows you to set the font color of the label. In the UI, this property is represented under the "Label" category with the property name "Font Color".

MarkerSize

Gets or sets the size of the marker.

double MarkerSize { get; set; }

Property Value

double

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

This property allows you to set the size of the marker.

ParentInfo

Gets or sets the parent information of the coordinate system.

string ParentInfo { get; set; }

Property Value

string

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

Use this property to specify or retrieve the information about the parent that contains the coordinate system.

SphericalAxis1

Gets or sets the Axis ρ value for a spherical coordinate system.

CoordinateType SphericalAxis1 { get; set; }

Property Value

CoordinateType

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

This property allows you to set the Axis ρ value for a spherical coordinate system. It is only applicable when the property is set to . In the UI, this property is represented under the "Transformation Information" category with the property name "Axis ρ". The available options are:

  • None
  • Each Part
  • Whole

SphericalAxis2

Gets or sets the Axis Ø value for a spherical coordinate system.

CoordinateType SphericalAxis2 { get; set; }

Property Value

CoordinateType

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

This property allows you to set the Axis Ø value for a spherical coordinate system. It is only applicable when the property is set to . In the UI, this property is represented under the "Transformation Information" category with the property name "Axis Ø". The available options are:

  • None
  • Each Part
  • Whole

TrajectoryColor

Gets or sets the trajectory color of the marker.

Color TrajectoryColor { get; set; }

Property Value

Color

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

This property allows you to set the trajectory color of the marker. The trajectory color is only displayed when the property is set to true. In the UI, this property is represented under the "Trajectory" category with the property name "Color".

TransformationOffsetAngle

Gets or sets the offset angle vector relative to the reference orientation.

Vector TransformationOffsetAngle { get; set; }

Property Value

Vector

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

This property adjusts the orientation by applying the specified angular offset to the reference orientation. The offset can be applied using either the and options, which affect how the offset is calculated. Additionally, the offset is influenced by the chosen rotation type and rotation axis, resulting in different transformations based on these parameters.

TransformationOffsetPosition

Gets or sets the offset position vector relative to a specified reference position.

Vector TransformationOffsetPosition { get; set; }

Property Value

Vector

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

This property adjusts the position by applying the specified offset to the reference position, known as "Position." The offset is defined as a vector and can be used to translate the position in 3D space.

TransformationOffsetRotationAxis

Gets or sets the rotation axis used for applying rotational transformations.

RotationAxes TransformationOffsetRotationAxis { get; set; }

Property Value

RotationAxes

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

This property defines the axis around which rotational transformations are applied. It allows you to specify whether the rotation should occur around the X, Y, or Z axis, or a combination of these axes, depending on the requirements of the transformation. The available options are:

TransformationOffsetRotationType

Gets or sets the type of rotation used for applying rotational transformations.

RotationTypes TransformationOffsetRotationType { get; set; }

Property Value

RotationTypes

Examples

For an example that includes this property, see the Interface IOperationsCSYSViewModel.

Remarks

This property determines how rotational transformations are applied by specifying the type of rotation. It allows you to choose between different rotation types, such as Euler angles or fixed angles, depending on the requirements of the transformation process. The available options are:

Connect with Ansys