Validate custom object property via ACT console

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 389
First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
edited June 2023 in Structures

Validate custom object property via ACT console

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 389
    First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
    Answer ✓

    Get the property and after setting a value, "Validate" method will call the function under <onvalidate> Tag if any.

    rpm_set = engine_order_response.Properties.GetByName("RPMSetNumber")
    rpm_set.Value = 2
    rpm_set.Validate()