How to change Edge Display, show max probe on result and scale deformation scale factor?

Rohith Patchigolla
Rohith Patchigolla Member, Moderator, Employee Posts: 206
100 Comments 25 Answers Second Anniversary 25 Likes
✭✭✭✭

In Mechanical, I would like to change Edge Display, show max probe on result and scale deformation scale factor via Mechanical scripting

Answers

  • Rohith Patchigolla
    Rohith Patchigolla Member, Moderator, Employee Posts: 206
    100 Comments 25 Answers Second Anniversary 25 Likes
    ✭✭✭✭

    For Edge display for Results, these are the below options

    Graphics.ViewOptions.ResultPreference.ExtraModelDisplay =MechanicalEnums.Graphics.ExtraModelDisplay.NoWireframe
    Graphics.ViewOptions.ResultPreference.ExtraModelDisplay =MechanicalEnums.Graphics.ExtraModelDisplay.UndeformedWireframe
    Graphics.ViewOptions.ResultPreference.ExtraModelDisplay =MechanicalEnums.Graphics.ExtraModelDisplay.UndeformedModel
    Graphics.ViewOptions.ResultPreference.ExtraModelDisplay =MechanicalEnums.Graphics.ExtraModelDisplay.ShowElements
    

    For showing max probe on Result contour,

    Graphics.ViewOptions.ResultPreference.ShowMaximum = True
    

    For scaling deformation scale factor

    Graphics.ViewOptions.ResultPreference.DeformationScaleMultiplier = 2