Skip to main content

Mechanical scripting interface

IModelViewManager

Last update: 14.01.2025

class Ansys.ACT.Interfaces.Graphics.IModelViewManager

Bases: object

Overview

Methods

Name Description
ApplyModelView Apply the view specified by index.
CaptureModelView Save the view specified by index as a PNG image to the project userfiles.
CreateView Create a view from current graphics with default naming.
DeleteView Delete the specified view by index.
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.

Properties

Name Description
NumberOfViews The number of views currently defined.

Property detail

property IModelViewManager.NumberOfViews : int | None

The number of views currently defined.

Method detail

IModelViewManager.ApplyModelView(viewIndex: int)

Apply the view specified by index.

IModelViewManager.CaptureModelView(index: int, mode: str)

Save the view specified by index as a PNG image to the project userfiles.

IModelViewManager.CreateView()

Create a view from current graphics with default naming.

IModelViewManager.DeleteView(viewIndex: int)

Delete the specified view by index.

IModelViewManager.ExportModelViews(viewfilepath: str)

Export model views to the specified file.

IModelViewManager.ImportModelViews(viewfilepath: str)

Import model views from the specified file.

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

Rename the model view specified by viewIndex to newLabel.