How to access the Discovery result and read the result value through script?
Answers
-
Hello Yuelei Fu,
If you have a monitor defined, you can get the value from a script using:
MyMonitorValue = Results.Monitor.GetByLabel("A string that matches your Monitor's label, you'll have to change this text to match your simulation").GetValue()
For example, with the built in Bracket_Static_Stress.DSCO file, typing:
print(Results.Monitor.GetByLabel("Factor of Safety").GetValue())
returns a value of 10.87
Best Regards,
Matthew
0 -
Thank you Matthew, it's working.
0