DMGraphicsWrapper#

class ansys.mechanical.stubs.v242.Ansys.ACT.Common.Graphics.DMGraphicsWrapper#

Bases: object

Wrapper for Graphics in Design Modeler.

Overview#

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.

ExportScreenToImage

Exports the current Graphics screen to a file.

Scene

Gets the scene.

Property detail#

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

Gets the scene.

Method detail#

DMGraphicsWrapper.Redraw() System.Void

Forces the scene to redraw its content.

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

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

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

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

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

Create a point from world coordinates.

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

Create a 3D vector from world coordinates.

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

Exports the current Graphics screen to a file.