Use Activity.SetFieldValue
- Last UpdatedApr 30, 2024
- 1 minute read
You can use the SetFieldValue method of the global Activity object to set the SimStatus value of the simulation. This updates the Sim Status column in the list of simulations in the RTS Console and in the output from the rts list command. The SimStatus value can be any text that is meaningful for your specific simulation. Ideally, set the text to a short status indicator, such as "Solved".
The following script shows how you can use this method in your cycle script:
Activity.SetFieldValue("SimStatus", "Solved");
The first parameter must be "SimStatus". You can replace the second parameter with a different literal string or a variable.