Skip to main content

Mechanical scripting interface

ModelViewManager

Last update: 14.01.2025

class Ansys.ACT.Common.Graphics.ModelViewManager

Bases: object

ModelViewManager class.

Overview

Methods

Name Description
ApplyModelView Apply the view specified by index.
CreateView Create a view from current graphics with default naming.
DeleteView Delete the specified view by name.
ExportModelViews Export model views to the specified file.
ImportModelViews Import model views from the specified file.
RenameView Rename the model view specified by viewIndex to newLabel.
SetActiveViewPort Set the active of viewport.
SetViewPorts Set the number of viewports displayed.

Properties

Name Description
ActiveViewPort ActiveViewPort property.
NumberOfViews The number of views currently defined.

Property detail

property ModelViewManager.ActiveViewPort : Ansys.ACT.Common.Graphics.MechanicalViewPort | None

ActiveViewPort property.

property ModelViewManager.NumberOfViews : int | None

The number of views currently defined.

Method detail

ModelViewManager.ApplyModelView(viewIndex: int)

Apply the view specified by index.

ModelViewManager.CreateView()

Create a view from current graphics with default naming.

ModelViewManager.DeleteView(viewLabel: str)

Delete the specified view by name.

ModelViewManager.ExportModelViews(viewfilepath: str)

Export model views to the specified file.

ModelViewManager.ImportModelViews(viewfilepath: str)

Import model views from the specified file.

ModelViewManager.RenameView(viewIndex: int, newLabel: str)

Rename the model view specified by viewIndex to newLabel.

ModelViewManager.SetActiveViewPort(winRowIndex: int, winColIndex: int)

Set the active of viewport.

ModelViewManager.SetViewPorts(numViewPorts: int, horizontal: bool)

Set the number of viewports displayed.