Skip to main content

Mechanical scripting interface

ViewOptions

Last update: 14.01.2025

class Ansys.Mechanical.Graphics.ViewOptions

Bases: object

ViewOptions class.

Overview

Methods

Name Description
RescaleAnnotations Rescale size of annotation following a zoom in or zoom out of the model.

Properties

Name Description
AnnotationPreferences AnnotationPreferences property.
ClusteredVertexTolerance Sets the clustered vertices custom tolerance value.
DisplayGraphOverlay Display Graph overlay in the current viewport.
ModelColoring Sets the Model display Coloring.
ModelDisplay Sets the model display option.
ResultPreference ResultPreference property.
ShowBeamThickness Displays the thickness of beams.
ShowClusteredVertices Displays all closely clustered vertices of the model.
ShowCoordinateSystems Displays all coordinate system defined.
ShowEdgeDirection Displays the edge direction arrow.
ShowLegend Displays the legend.
ShowMesh Display the model’s mesh.
ShowMeshConnection Displays edge connection using a color scheme based on the mesh connection information.
ShowRandomColors Sets random colors for each object of the application.
ShowRemotePointConnections Displays the Remote Point Connections.
ShowResultVectors Displays the result vectors.
ShowRuler Displays the ruler.
ShowSPHExpansion Displays the expansion for SPH elements.
ShowShellThickness Displays the thickness of shells.
ShowThickEdgeScoping Thicken the display of edge scoping.
ShowTriad Displays the triad.
ShowVertices Display all the vertices of the model.
VectorDisplay VectorDisplay property.

Property detail

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

AnnotationPreferences property.

property ViewOptions.ClusteredVertexTolerance : Ansys.Core.Units.Quantity | None

Sets the clustered vertices custom tolerance value.

property ViewOptions.DisplayGraphOverlay : bool | None

Display Graph overlay in the current viewport.

property ViewOptions.ModelColoring : Ansys.Mechanical.DataModel.Enums.ModelColoring | None

Sets the Model display Coloring.

property ViewOptions.ModelDisplay : Ansys.Mechanical.DataModel.Enums.ModelDisplay | None

Sets the model display option.

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

ResultPreference property.

property ViewOptions.ShowBeamThickness : bool | None

Displays the thickness of beams.

property ViewOptions.ShowClusteredVertices : bool | None

Displays all closely clustered vertices of the model.

property ViewOptions.ShowCoordinateSystems : bool | None

Displays all coordinate system defined.

property ViewOptions.ShowEdgeDirection : bool | None

Displays the edge direction arrow.

property ViewOptions.ShowLegend : bool | None

Displays the legend.

property ViewOptions.ShowMesh : bool | None

Display the model’s mesh.

property ViewOptions.ShowMeshConnection : bool | None

Displays edge connection using a color scheme based on the mesh connection information.

property ViewOptions.ShowRandomColors : bool | None

Sets random colors for each object of the application.

property ViewOptions.ShowRemotePointConnections : bool | None

Displays the Remote Point Connections.

property ViewOptions.ShowResultVectors : bool | None

Displays the result vectors.

property ViewOptions.ShowRuler : bool | None

Displays the ruler.

property ViewOptions.ShowSPHExpansion : bool | None

Displays the expansion for SPH elements.

property ViewOptions.ShowShellThickness : bool | None

Displays the thickness of shells.

property ViewOptions.ShowThickEdgeScoping : bool | None

Thicken the display of edge scoping.

property ViewOptions.ShowTriad : bool | None

Displays the triad.

property ViewOptions.ShowVertices : bool | None

Display all the vertices of the model.

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

VectorDisplay property.

Method detail

ViewOptions.RescaleAnnotations()

Rescale size of annotation following a zoom in or zoom out of the model.