MechanicalGraphicsWrapper#

class ansys.mechanical.stubs.v241.Ansys.ACT.Common.Graphics.MechanicalGraphicsWrapper#

Bases: object

Wrapper for Graphics in Mechanical.

Overview#

ExportScreenToImage

ExportScreenToImage method.

ExportImage

Exports the current graphics display to a 2D image file.

ExportViewports

Creates a composite of images exported from each open viewport.

Export3D

Exports the current Graphics display in a 3d format to a file.

Redraw

Forces the scene to redraw its content.

Suspend

Prevents the scene to redraw until the Resume controller method was called.

ForceResume

Forces the scene to resume. Useful in interactive context (console) if a reference on an

CreatePixelPoint

Creates a point from pixel coordinates (ie. window coordinates).

CreateWorldPoint

Create a point from world coordinates.

CreateVector3D

Create a 3D vector from world coordinates.

Unit

Gets the current graphics unit.

ModelViewManager

An instance of the ModelViewManager.

KeyframeAnimationUtility

A utility for creating animations based on keyframes.

ResultAnimationOptions

Gets the Global Result Animation options.

SectionPlanes

Returns the collection of section planes used by graphics

ViewOptions

Gets the Graphics View Options.

GlobalLegendSettings

Gets the Global Graphics Legend Settings.

Camera

Gets the camera.

Scene

Gets the scene.

Property detail#

property MechanicalGraphicsWrapper.Unit: System.String | None

Gets the current graphics unit.

property MechanicalGraphicsWrapper.ModelViewManager: Ansys.ACT.Interfaces.Graphics.IModelViewManager | None

An instance of the ModelViewManager.

property MechanicalGraphicsWrapper.KeyframeAnimationUtility: Ansys.ACT.Common.Graphics.KeyframeAnimationUtility | None

A utility for creating animations based on keyframes.

property MechanicalGraphicsWrapper.ResultAnimationOptions: Ansys.Mechanical.Graphics.ResultAnimationOptions | None

Gets the Global Result Animation options.

property MechanicalGraphicsWrapper.SectionPlanes: Ansys.Mechanical.Graphics.SectionPlanes | None

Returns the collection of section planes used by graphics

property MechanicalGraphicsWrapper.ViewOptions: Ansys.Mechanical.Graphics.ViewOptions | None

Gets the Graphics View Options.

property MechanicalGraphicsWrapper.GlobalLegendSettings: Ansys.Mechanical.Graphics.GlobalLegendSettings | None

Gets the Global Graphics Legend Settings.

property MechanicalGraphicsWrapper.Camera: Ansys.ACT.Common.Graphics.MechanicalCameraWrapper | None

Gets the camera.

property MechanicalGraphicsWrapper.Scene: Ansys.ACT.Interfaces.Graphics.IGraphicsCollection | None

Gets the scene.

Method detail#

MechanicalGraphicsWrapper.ExportScreenToImage(filePath: System.String) System.Void

ExportScreenToImage method.

MechanicalGraphicsWrapper.ExportImage(filePath: System.String, formatImage: Ansys.Mechanical.DataModel.Enums.GraphicsImageExportFormat, settings: Ansys.Mechanical.Graphics.GraphicsImageExportSettings) System.Void

Exports the current graphics display to a 2D image file.

MechanicalGraphicsWrapper.ExportViewports(filePath: System.String, format: Ansys.Mechanical.DataModel.Enums.GraphicsImageExportFormat, settings: Ansys.Mechanical.Graphics.GraphicsViewportsExportSettings) System.Void

Creates a composite of images exported from each open viewport.

MechanicalGraphicsWrapper.Export3D(filePath: System.String, format3d: Ansys.Mechanical.DataModel.Enums.Graphics3DExportFormat, settings: Ansys.Mechanical.Graphics.Graphics3DExportSettings) System.Void

Exports the current Graphics display in a 3d format to a file.

MechanicalGraphicsWrapper.Redraw() System.Void

Forces the scene to redraw its content.

MechanicalGraphicsWrapper.Suspend() Ansys.ACT.Interfaces.Graphics.ISuspendController

Prevents the scene to redraw until the Resume controller method was called.

MechanicalGraphicsWrapper.ForceResume() System.Void
Forces the scene to resume. Useful in interactive context (console) if a reference on an
operation has been lost.
MechanicalGraphicsWrapper.CreatePixelPoint(x: System.Int32, y: System.Int32) Ansys.ACT.Interfaces.Graphics.IPixelPoint

Creates a point from pixel coordinates (ie. window coordinates).

MechanicalGraphicsWrapper.CreateWorldPoint(x: System.Double, y: System.Double, z: System.Double) Ansys.ACT.Interfaces.Graphics.IWorldPoint

Create a point from world coordinates.

MechanicalGraphicsWrapper.CreateVector3D(x: System.Double, y: System.Double, z: System.Double) Ansys.ACT.Interfaces.Graphics.IVector3D

Create a 3D vector from world coordinates.