Skip to main content

Mechanical scripting interface 2025

`IModelViewManager`

Last update: 09.03.2026

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) → None

Apply the view specified by index.

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

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

IModelViewManager.CreateView() → None

Create a view from current graphics with default naming.

IModelViewManager.DeleteView(viewIndex: int) → None

Delete the specified view by index.

IModelViewManager.ExportModelViews(viewfilepath: str) → None

Export model views to the specified file.

IModelViewManager.ImportModelViews(viewfilepath: str) → None

Import model views from the specified file.

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

Rename the model view specified by viewIndex to newLabel.

Connect with Ansys