GraphicsViewportsExportSettings#

class ansys.mechanical.stubs.v241.Ansys.Mechanical.Graphics.GraphicsViewportsExportSettings#

Bases: object

Settings object to control Graphics.ExportViewports behavior.

Overview#

BorderStyle

Specifies which borders to add, if any, to the exported viewports image.

CurrentGraphicsDisplay

Specifies whether to use the current graphics display settings. Defaults to true.

AppendGraph

Specifies whether to append the viewport graph(s) to the exported image. Defaults to false.

Resolution

Specifies the resolution type. Defaults to NormalResolution.

Capture

Specifies what to include in the capture. Defaults to ImageAndLegend.

Background

Specifies the background color. Defaults to GraphicsAppearanceSetting.

FontMagnification

Specifies the font magnification factor. Defaults to 1.0.

Width

Specifies the image width. Defaults to 0. If width AND height are zero, this uses the current dimensions. If only one of the two are nonzero, the current dimension’s ratio is used along with the nonzero of the two properties to determine the computed value of the zero property.

Height

Specifies the image height. Defaults to 0. If width AND height are zero, this uses the current dimensions. If only one of the two are nonzero, the current dimension’s ratio is used along with the nonzero of the two properties to determine the computed value of the zero property.

Property detail#

property GraphicsViewportsExportSettings.BorderStyle: Ansys.Mechanical.DataModel.Enums.GraphicsViewportsExportBorderStyle | None

Specifies which borders to add, if any, to the exported viewports image. Border style enum values can be combined via bitwise-or ( | ). Defaults to None.

property GraphicsViewportsExportSettings.CurrentGraphicsDisplay: System.Boolean | None

Specifies whether to use the current graphics display settings. Defaults to true.

property GraphicsViewportsExportSettings.AppendGraph: System.Boolean | None

Specifies whether to append the viewport graph(s) to the exported image. Defaults to false.

property GraphicsViewportsExportSettings.Resolution: Ansys.Mechanical.DataModel.Enums.GraphicsResolutionType | None

Specifies the resolution type. Defaults to NormalResolution.

property GraphicsViewportsExportSettings.Capture: Ansys.Mechanical.DataModel.Enums.GraphicsCaptureType | None

Specifies what to include in the capture. Defaults to ImageAndLegend.

property GraphicsViewportsExportSettings.Background: Ansys.Mechanical.DataModel.Enums.GraphicsBackgroundType | None

Specifies the background color. Defaults to GraphicsAppearanceSetting.

property GraphicsViewportsExportSettings.FontMagnification: System.Double | None

Specifies the font magnification factor. Defaults to 1.0.

property GraphicsViewportsExportSettings.Width: System.Int32 | None

Specifies the image width. Defaults to 0. If width AND height are zero, this uses the current dimensions. If only one of the two are nonzero, the current dimension’s ratio is used along with the nonzero of the two properties to determine the computed value of the zero property.

property GraphicsViewportsExportSettings.Height: System.Int32 | None

Specifies the image height. Defaults to 0. If width AND height are zero, this uses the current dimensions. If only one of the two are nonzero, the current dimension’s ratio is used along with the nonzero of the two properties to determine the computed value of the zero property.