Skip to main content

Mechanical scripting interface 2025

`DMGraphicsWrapper`

Last update: 09.03.2026

class Ansys.ACT.Common.Graphics.DMGraphicsWrapper

Bases: object

Wrapper for Graphics in Design Modeler.

Overview

Methods

Name Description
CreatePixelPoint Creates a point from pixel coordinates (ie. window coordinates).
CreateVector3D Create a 3D vector from world coordinates.
CreateWorldPoint Create a point from world coordinates.
ExportScreenToImage Exports the current Graphics screen to a file.
ForceResume Forces the scene to resume. Useful in interactive context (console) if a reference on an
Redraw Forces the scene to redraw its content.
Suspend Prevents the scene to redraw until the Resume controller method was called.

Properties

Name Description
Scene Gets the scene.

Property detail

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

Gets the scene.

Method detail

DMGraphicsWrapper.CreatePixelPoint(x: int, y: int) → Ansys.ACT.Interfaces.Graphics.IPixelPoint

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

DMGraphicsWrapper.CreateVector3D(x: float, y: float, z: float) → Ansys.ACT.Interfaces.Graphics.IVector3D

Create a 3D vector from world coordinates.

DMGraphicsWrapper.CreateWorldPoint(x: float, y: float, z: float) → Ansys.ACT.Interfaces.Graphics.IWorldPoint

Create a point from world coordinates.

DMGraphicsWrapper.ExportScreenToImage(filePath: str) → None

Exports the current Graphics screen to a file.

DMGraphicsWrapper.ForceResume() → None

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

DMGraphicsWrapper.Redraw() → None

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.

Connect with Ansys