MechanicalGraphicsWrapper#
- class ansys.mechanical.stubs.v251.Ansys.ACT.Common.Graphics.MechanicalGraphicsWrapper#
- Bases: - object- Wrapper for Graphics in Mechanical. 
Overview#
| Creates a point from pixel coordinates (ie. window coordinates). | |
| Create a 3D vector from world coordinates. | |
| Create a point from world coordinates. | |
| Exports the current Graphics display in a 3d format to a file. | |
| Exports the current graphics display to a 2D image file. | |
| ExportScreenToImage method. | |
| Creates a composite of images exported from each open viewport. | |
| Forces the scene to resume. Useful in interactive context (console) if a reference on an | |
| Forces the scene to redraw its content. | |
| Prevents the scene to redraw until the Resume controller method was called. | 
| Gets the camera. | |
| Gets the Global Graphics Legend Settings. | |
| A utility for creating animations based on keyframes. | |
| An instance of the ModelViewManager. | |
| Gets the Global Result Animation options. | |
| Gets the scene. | |
| Returns the collection of section planes used by graphics | |
| Gets the current graphics unit. | |
| Gets the Graphics View Options. | 
Property detail#
- property MechanicalGraphicsWrapper.Camera: Ansys.ACT.Common.Graphics.MechanicalCameraWrapper | None#
- Gets the camera. 
- property MechanicalGraphicsWrapper.GlobalLegendSettings: Ansys.Mechanical.Graphics.GlobalLegendSettings | None#
- Gets the Global Graphics Legend Settings. 
- property MechanicalGraphicsWrapper.KeyframeAnimationUtility: Ansys.ACT.Common.Graphics.KeyframeAnimationUtility | None#
- A utility for creating animations based on keyframes. 
- property MechanicalGraphicsWrapper.ModelViewManager: Ansys.ACT.Interfaces.Graphics.IModelViewManager | None#
- An instance of the ModelViewManager. 
- property MechanicalGraphicsWrapper.ResultAnimationOptions: Ansys.Mechanical.Graphics.ResultAnimationOptions | None#
- Gets the Global Result Animation options. 
- property MechanicalGraphicsWrapper.Scene: Ansys.ACT.Interfaces.Graphics.IGraphicsCollection | None#
- Gets the scene. 
- 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. 
Method detail#
- MechanicalGraphicsWrapper.CreatePixelPoint(x: int, y: int) Ansys.ACT.Interfaces.Graphics.IPixelPoint#
- Creates a point from pixel coordinates (ie. window coordinates). 
- MechanicalGraphicsWrapper.CreateVector3D(x: float, y: float, z: float) Ansys.ACT.Interfaces.Graphics.IVector3D#
- Create a 3D vector from world coordinates. 
- MechanicalGraphicsWrapper.CreateWorldPoint(x: float, y: float, z: float) Ansys.ACT.Interfaces.Graphics.IWorldPoint#
- Create a point from world coordinates. 
- MechanicalGraphicsWrapper.Export3D(filePath: str, format3d: Ansys.Mechanical.DataModel.Enums.Graphics3DExportFormat, settings: Ansys.Mechanical.Graphics.Graphics3DExportSettings) None#
- Exports the current Graphics display in a 3d format to a file. 
- MechanicalGraphicsWrapper.ExportImage(filePath: str, formatImage: Ansys.Mechanical.DataModel.Enums.GraphicsImageExportFormat, settings: Ansys.Mechanical.Graphics.GraphicsImageExportSettings) None#
- Exports the current graphics display to a 2D image file. 
- MechanicalGraphicsWrapper.ExportViewports(filePath: str, format: Ansys.Mechanical.DataModel.Enums.GraphicsImageExportFormat, settings: Ansys.Mechanical.Graphics.GraphicsViewportsExportSettings) None#
- Creates a composite of images exported from each open viewport. 
Forces the scene to resume. Useful in interactive context (console) if a reference on an
operation has been lost.
- MechanicalGraphicsWrapper.Suspend() Ansys.ACT.Interfaces.Graphics.ISuspendController#
- Prevents the scene to redraw until the Resume controller method was called. 
