Set Result Display Options

You use the following command to access Result object display options (Preferences):

Graphics.ViewOptions.ResultPreference

The following properties are available with the ResultPreference object.

PropertyDescription
DeformationScaleMultiplierGets or sets the deformation scale multiplier for the result.
DeformationScalingGets or sets the deformation scale multiplier to either Auto Scale (DeformationScaling.Auto) or True Scale (DeformationScaling.True).
ShowMinimumGets or sets whether to display the result minimum value annotation label.
ShowMaximumGets or sets whether to display the result maximum value annotation label.
GeometryViewGets or sets the result geometry view.
ContourViewGets or sets the result contour view.
ExtraModelDisplayGets or sets the result edge display option.
IsoSurfaceValueGets or sets the capping value for Capped ISO surface view.
CappingTypeGets or sets the result capping type.
ScopingDisplayGets or sets the result scoping display.

Examples

Example 1

The following code sets the DeformationScaleMultiplier to 10 and the DeformationScaling to True.

Graphics.ViewOptions.ResultPreference.DeformationScaleMultiplier = 10
Graphics.ViewOptions.ResultPreference.DeformationScaling = MechanicalEnums.Graphics.DeformationScaling.True

Or...

Graphics.ViewOptions.ResultPreference.DeformationScaleMultiplier = 10
Graphics.ViewOptions.ResultPreference.DeformationScaling = MechanicalEnums.Graphics.DeformationScaling.Auto

Note that the deformation Scale Factor has two options:

  • True (True Scale): A multiplier for the actual deformation of the model.

  • Auto (Auto Scale): A multiplier for an application controlled computation for an Auto Scale of the model.

The example deformations illustrated below demonstrate how an undeformed model is deformed with the True Scale and an Auto Scale factors.

Undeformed

True Scale

Auto Scale

Example 2

The following code sets the:

  • GeometryView property to CappedIsoSurface

  • IsoSurfaceValue property to 0.013477

  • CappingType property to Top.

Graphics.ViewOptions.ResultPreference.GeometryView = MechanicalEnums.Graphics.GeometryView.CappedIsosurface
Graphics.ViewOptions.ResultPreference.IsoSurfaceValue = Quantity('0.013477')
Graphics.ViewOptions.ResultPreference.CappingType = MechanicalEnums.Graphics.CappingType.Top

Example 3

When you scope the result to the bodies shown below, the following code sets the:

  • ContourView property to SmoothContours

  • ExtraModelDisplay property to NoWireframe

  • ScopingDisplay proerpty to ResultOnly

Graphics.ViewOptions.ResultPreference.ContourView = MechanicalEnums.Graphics.ContourView.SmoothContours 
Graphics.ViewOptions.ResultPreference.ExtraModelDisplay = MechanicalEnums.Graphics.ExtraModelDisplay.NoWireframe 
Graphics.ViewOptions.ResultPreference.ScopingDisplay = MechanicalEnums.Graphics.ScopingDisplay.ResultOnly