Filter Mechanical results in ACT

Ansys Staff
Ansys Staff Member, Employee Posts: 24
Ansys Employee Name Dropper First Comment Photogenic
✭✭✭✭
edited June 2023 in Structures

All,

I have to code a sequence where the results shall be filtered by a certain threshold. In this example equivalent stress >= 500 MPa, just like shown in the following image. Does someone know how this can be achieved?

enter image description here

Answers

  • Chemsdine CHEMAI
    Chemsdine CHEMAI Member, Employee Posts: 201
    100 Likes 100 Comments Second Anniversary Ansys Employee
    ✭✭✭✭
    Answer ✓

    here are the code lines :

    graphics = ExtAPI.DataModel.InternalObject["ds"].Graphics
    graphics.ResultPrefs.typeDisplay = 2
    graphics.ResultPrefs.cappedIsoSurfaceStyle = 0;
    graphics.ResultPrefs.cappedIsoSurfaceValue = 500;
    graphics.Refresh()
    

    It's using the jscript API.