You use the following command to access Result object display options (Preferences):
Graphics.ViewOptions.ResultPreference
The following properties are available with the ResultPreference object.
| Property | Description |
|---|---|
DeformationScaleMultiplier | Gets or sets the deformation scale multiplier for the result. |
DeformationScaling | Gets or sets the deformation scale multiplier to either Auto Scale (DeformationScaling.Auto) or True Scale
(DeformationScaling.True). |
ShowMinimum | Gets or sets whether to display the result minimum value annotation label. |
ShowMaximum | Gets or sets whether to display the result maximum value annotation label. |
GeometryView | Gets or sets the result geometry view. |
ContourView | Gets or sets the result contour view. |
ExtraModelDisplay | Gets or sets the result edge display option. |
IsoSurfaceValue | Gets or sets the capping value for Capped ISO surface view. |
CappingType | Gets or sets the result capping type. |
ScopingDisplay | Gets or sets the result scoping display. |
Examples
- Example 1
The following code sets the
DeformationScaleMultiplierto10and theDeformationScalingtoTrue.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:
GeometryViewproperty toCappedIsoSurfaceIsoSurfaceValueproperty to0.013477CappingTypeproperty toTop.
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:
ContourViewproperty toSmoothContoursExtraModelDisplayproperty toNoWireframeScopingDisplayproerpty toResultOnly
Graphics.ViewOptions.ResultPreference.ContourView = MechanicalEnums.Graphics.ContourView.SmoothContours Graphics.ViewOptions.ResultPreference.ExtraModelDisplay = MechanicalEnums.Graphics.ExtraModelDisplay.NoWireframe Graphics.ViewOptions.ResultPreference.ScopingDisplay = MechanicalEnums.Graphics.ScopingDisplay.ResultOnly
