> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ModelViewManager

#### *class* Ansys.ACT.Common.Graphics.ModelViewManager

Bases: [`object`](https://docs.python.org/3/library/functions.html#object)

## Overview

### Methods

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

### Properties

| Name | Description |
| - | - |
| [`ActiveViewPort`](#ModelViewManager.ActiveViewPort) | ActiveViewPort property. |
| [`NumberOfViews`](#ModelViewManager.NumberOfViews) | The number of views currently defined. |

## Property detail

### *property* ModelViewManager.ActiveViewPort *: Ansys.ACT.Common.Graphics.MechanicalViewPort | [None](https://docs.python.org/3/library/constants.html#None)*

ActiveViewPort property.

### *property* ModelViewManager.NumberOfViews *: [int](https://docs.python.org/3/library/functions.html#int) | [None](https://docs.python.org/3/library/constants.html#None)*

The number of views currently defined.

## Method detail

### ModelViewManager.ApplyModelView(viewIndex: [int](https://docs.python.org/3/library/functions.html#int)) → [None](https://docs.python.org/3/library/constants.html#None)

Apply the view specified by index.

### ModelViewManager.CreateView() → [None](https://docs.python.org/3/library/constants.html#None)

Create a view from current graphics with default naming.

### ModelViewManager.DeleteView(viewLabel: [str](https://docs.python.org/3/library/stdtypes.html#str)) → [None](https://docs.python.org/3/library/constants.html#None)

Delete the specified view by name.

### ModelViewManager.ExportModelViews(viewfilepath: [str](https://docs.python.org/3/library/stdtypes.html#str)) → [None](https://docs.python.org/3/library/constants.html#None)

Export model views to the specified file.

### ModelViewManager.ImportModelViews(viewfilepath: [str](https://docs.python.org/3/library/stdtypes.html#str)) → [None](https://docs.python.org/3/library/constants.html#None)

Import model views from the specified file.

### ModelViewManager.RenameView(viewIndex: [int](https://docs.python.org/3/library/functions.html#int), newLabel: [str](https://docs.python.org/3/library/stdtypes.html#str)) → [None](https://docs.python.org/3/library/constants.html#None)

Rename the model view specified by viewIndex to newLabel.

### ModelViewManager.SetActiveViewPort(winRowIndex: [int](https://docs.python.org/3/library/functions.html#int), winColIndex: [int](https://docs.python.org/3/library/functions.html#int)) → [None](https://docs.python.org/3/library/constants.html#None)

Set the active of viewport.

### ModelViewManager.SetViewPorts(numViewPorts: [int](https://docs.python.org/3/library/functions.html#int), horizontal: [bool](https://docs.python.org/3/library/functions.html#bool)) → [None](https://docs.python.org/3/library/constants.html#None)

Set the number of viewports displayed.
