Skip to main content

Motion Standalone Postprocessor C# library 2025 R2

Interface IOperationsAxisViewModelBase

Last update: 16.07.2025

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

Interface representing common information for an axis view model.

public interface IOperationsAxisViewModelBase

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.

# IOperationsAxisViewModelBase.py
import sys

current_dir = __file__.rsplit('\\', 1)[0]
external_modules_path = current_dir + '\\..\\..\\Modules'
sys.path.append(external_modules_path)

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
applicationHandler.AddDocument(filepaths)

# Get Page
page = applicationHandler.GetActivePage()

# Create PlotView
chartView = page.CreateChart("Chart")

# Set Background
axis = chartView.GetAxis("Y")
axis.Title = "YAxis"
axis.TitleSize = 16
axis.TitleWeight = OperationAPIService.GetFontWeightFromString("Bold")

# Close the Pages
page.Close()

# Close Document
applicationHandler.CloseDocument(result_file_path)

Properties

Title

Gets or sets the title of the axis.

string Title { get; set; }

Property Value

string

Examples

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

Remarks

Use this property to specify or retrieve the title of the axis.

TitleSize

Gets or sets the font size of the title.

double TitleSize { get; set; }

Property Value

double

Examples

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

Remarks

Use this property to specify or retrieve the font size of the title.

TitleWeight

Gets or sets the font weight of the title.

FontWeight TitleWeight { get; set; }

Property Value

FontWeight

Examples

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

Remarks

Use this property to specify or retrieve the font weight of the title. The available options are:

Connect with Ansys