ModelViewManager#

class ansys.mechanical.stubs.v261.Ansys.ACT.Common.Graphics.ModelViewManager(wrapper: Ansys.ACT.Common.Graphics.MechanicalGraphicsWrapper, graphics: Ansys.Common.Interop.Gfx.IDSGraphics)#

Bases: object

Overview#

ApplyModelView

Apply the view specified by index.

Capture3DImage

Exports the active object to a 3d AVZ file.

CaptureModelView

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

CaptureObjectImage

Save the object specified as an image. The image have the same name as the object.

CreateView

Create a view from current graphics with default naming.

DeleteView

Delete the specified view by name.

Equals

Equals method.

ExportModelViews

Export model views to the specified file.

GetHashCode

GetHashCode method.

GetType

GetType method.

GetViewPortSize

Returns the width and height of the specified viewport.

GetViewPorts

Get the viewport display style.

ImportModelViews

Import model views from the specified file.

RenameView

Rename the model view specified by viewIndex to newLabel.

RotateView

Rotate the current ModelView.

SetActiveViewPort

Set the active of viewport.

SetBackView

Change to Back view.

SetBottomView

Change to Bottom view.

SetFitView

Change to Fit view.

SetFrontView

Change to Front view.

SetISOView

Change to ISO view.

SetLeftView

Change to Left view.

SetRightView

Change to Right view.

SetTopView

Change to Top view.

SetViewPorts

Set the number of viewports displayed.

ToString

ToString method.

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

Apply the view specified by index.

ModelViewManager.Capture3DImage(avzfilepath: str) None#

Exports the active object to a 3d AVZ file.

ModelViewManager.CaptureModelView(index: int, mode: str) None#

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

ModelViewManager.CaptureObjectImage(obj: Ansys.ACT.Automation.Mechanical.DataModelObject, mode: str, folder: str) None#

Save the object specified as an image. The image have the same name as the object.

ModelViewManager.CreateView() None#

Create a view from current graphics with default naming.

ModelViewManager.DeleteView(viewLabel: str) None#

Delete the specified view by name.

ModelViewManager.Equals(obj: Any) bool#

Equals method.

ModelViewManager.ExportModelViews(viewfilepath: str) None#

Export model views to the specified file.

ModelViewManager.GetHashCode() int#

GetHashCode method.

ModelViewManager.GetType() type#

GetType method.

ModelViewManager.GetViewPortSize(viewportIndex: int) tuple[int, int]#

Returns the width and height of the specified viewport.

ModelViewManager.GetViewPorts() Ansys.Mechanical.DataModel.Enums.ViewportLayoutStyle#

Get the viewport display style.

ModelViewManager.ImportModelViews(viewfilepath: str) None#

Import model views from the specified file.

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

Rename the model view specified by viewIndex to newLabel.

ModelViewManager.RotateView(angle: float) None#

Rotate the current ModelView.

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

Set the active of viewport.

ModelViewManager.SetBackView() None#

Change to Back view.

ModelViewManager.SetBottomView() None#

Change to Bottom view.

ModelViewManager.SetFitView() None#

Change to Fit view.

ModelViewManager.SetFrontView() None#

Change to Front view.

ModelViewManager.SetISOView() None#

Change to ISO view.

ModelViewManager.SetLeftView() None#

Change to Left view.

ModelViewManager.SetRightView() None#

Change to Right view.

ModelViewManager.SetTopView() None#

Change to Top view.

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

Set the number of viewports displayed.

ModelViewManager.ToString() str#

ToString method.