Error Messages/40697

Example Error

You have used the Evaluate() function to evaluate Button Run_simulation. You cannot use Evaluate() to evaluate an Object of type Button.

Description

Since a Button (or the indicated object type in your case) doesn't return a computed value, it isn't an expression that Evaluate() supports. The EvaluateScript() function can "press" a button. But this should only be done from an action initiated from a button OnClick or other user-event handler in the button you want to run has side-effects like changing parts of the model.

See Also

Comments


You are not allowed to post comments.