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

Options
Rohith Patchigolla
Rohith Patchigolla Member, Moderator, Employee Posts: 115
First Answer First Anniversary Name Dropper Solution Developer Community of Practice Member

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: 115
    First Answer First Anniversary Name Dropper Solution Developer Community of Practice Member
    Options

    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