Skip to main content
Namespace: VM.Operations.Post.Interfaces
Assembly: VM.Operations.Post.dll
Represents a view in the application, providing functionalities to manage and interact with views.

Implements

IOperationsBase

Examples

To view the examples, refer to the location of the ‘Install_Path\Motion\Document\Postprocessor API for Python.zip’ file.

Properties

FullName

Gets or sets the name of the view.

Property Value

string

Examples

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

Remarks

The FullName property provides a simple way to manage the name of a view. It is a read-write property, meaning it can be both retrieved and modified. This property is typically used in scenarios where the view’s name is needed for display, logging, or processing purposes.

GroupID

Gets the ID of the page that the current view belongs to.

Property Value

Guid

Examples

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

Remarks

The GroupID property provides the ID of the page to which the current view belongs. This property is read-only and is set when the view is associated with a page. It allows for identifying the parent page of a view.

GroupName

Gets or sets the name of the page that the current view belongs to.

Property Value

string

Examples

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

Remarks

The GroupName property allows getting or setting the name of the page to which the current view belongs. When accessed, it retrieves the name of the parent page. When set, it updates the name of the parent page, allowing the name of the page to be changed from the context of the current view.

ID

Gets the unique identifier of the view.

Property Value

int

Examples

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

Remarks

The ID property provides the unique identifier for the view. This identifier is generated at the time of the view’s creation and remains constant for the lifetime of the view. The property is read-only and ensures each view can be uniquely identified.

ViewType

Gets the type of the view, indicating whether it is an Animation or Chart type. Supported view types include:
  • Animation
  • Chart

Property Value

ViewType

Examples

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

Remarks

The ViewType property provides information about the type of the view. It indicates whether the view is an Animation type or a Chart type. This can be useful when searching for specific types of views within a page. The available options are:
  • Animation
  • Chart

Methods

Activate()

Activates the view.

Examples

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

Remarks

The Activate method is used to activate the selected view. When this method is called, it deactivates any currently active views within the same page and sets the selected view as the only active view. There can be only one active view at a time.

DockTo(DockLayout, IView)

Moves the view to a specified position relative to another view.

Parameters

dockLayout DockLayout Specifies the position where the current view should be docked relative to the target view. The available options are:
  • Left
  • Top
  • Right
  • Bottom
target IView The view relative to which the current view will be docked.

Examples

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

Remarks

The DockTo() method is used to move the current view to a new position relative to another view. The position is specified using the dockLayout parameter, which determines the direction (Top, Bottom, Left, Right) where the current view will be docked in relation to the target view.

ExportImage(string, ImageFormat, double?, double?)

Exports the image to the specified file path in the specified format.

Parameters

filepath string The path where the image file will be saved. format ImageFormat The format in which the image will be saved. Supported formats are Png, Jpeg, and Bmp. The available options are:
  • Bmp
  • Jpeg
  • Png
width double? The optional width for the exported image. If not specified, the original width is used. height double? The optional height for the exported image. If not specified, the original height is used.

Examples

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

Remarks

This method allows you to export an image to a desired file path in a specified format. Supported formats are Png, Jpeg, and Bmp. You can also specify the desired dimensions for the exported image. If width or height is not provided, the original dimensions of the image will be used.