Mechanical scripting - changing the results display scale

total_obliteration
total_obliteration Member Posts: 12
Name Dropper First Comment
**

Hello :)
My script extracts contour plots of selected result for every load step. I am looking for a way to set a result display (deformations) scale factor via Scripting. There is a ScaleFactor method in the Result object but I think it controls some other aspect of the Result, not a "display scale factor".

print('selected result: ' + selected_result.Name)
selected_result.Activate()
selected_result.ScaleFactor = selected_result.ScaleFactor.UserDefined
selected_result.ScaleFactorValue = 100

Tagged:

Best Answer

  • Erik Kostson
    Erik Kostson Member, Moderator, Employee Posts: 285
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭
    edited August 2024 Answer ✓

    See this script:

    Graphics.ViewOptions.ResultPreference.DeformationScaleMultiplier = 100
    
    Tree.Refresh()
    

    All the best

    Erik