How to invalidate solution when updating ACT load object property via script in Mechanical?

Rohith Patchigolla
Rohith Patchigolla Member, Moderator, Employee Posts: 212
100 Comments 25 Answers Second Anniversary 25 Likes
✭✭✭✭

How to invalidate solution when updating ACT load object property via script?
If I update the property of the load object via GUI, it invalidates the solution, but the same update via Script doesn't invalidate the solution.

Best Answer

  • Rohith Patchigolla
    Rohith Patchigolla Member, Moderator, Employee Posts: 212
    100 Comments 25 Answers Second Anniversary 25 Likes
    ✭✭✭✭
    edited November 13 Answer ✓

    Please try changing in the xml by adding propertevents tag for Interface, as shown below.

    propertevents can be set to:
    "all" = "ui" + "script" -> property will be updated when script or ui changes are invoked.
    "ui" -> only UI updates allow for properties in the UI to be updated.

    <interface context="Mechanical" propertyevents="All">