Migration from v222 to v232

Options

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: 279
    First Anniversary First Comment 5 Likes Ansys Employee
    Options

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