Migration from v222 to v232

Hi,

ExtAPI.DataModel.InternalObject["ds"].Graphics.ResultPrefs.MinOn = False
ExtAPI.DataModel.InternalObject["ds"].Graphics.ResultPrefs.edgeDisplay = 2

This commande perfectly worked in Ansys 2022 R2 but not anymore in v2023 R2. I get the following error message:
'DispCallable' object has no attribute 'MinOn'

Can you give me the right code with same functionality. Thanks a lot.

Answers

  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 330
    25 Answers First Anniversary 100 Comments 25 Likes
    ✭✭✭✭

    Prefs = ExtAPI.Graphics.ViewOptions.ResultPreference
    Prefs.ShowMaximum=False
    Prefs.ShowMinimum=False
    Prefs.ExtraModelDisplay=MechanicalEnums.Graphics.ExtraModelDisplay.NoWireframe