Filter Mechanical results in ACT

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


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


  • Chemsdine CHEMAI
    Chemsdine CHEMAI Member, Employee Posts: 201
    First Anniversary Ansys Employee Solution Developer Community of Practice Member 5 Likes
    Answer ✓

    here are the code lines :

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

    It's using the jscript API.