Scriptable objects for Mathcad Prime
Hi all,
We're starting to look at scriptable objects for Mathcad Prime 4.0. Mathcad 15 has two types of scriptable objects:
- Insert Component…- > Scriptable Object
- Insert Control -> Push Button, etc. (the so called scriptable controls a.k.a. Mathsoft controls)
We'd like to understand better the use of each type. Specifically, one proposal is that we could provide an alternative scripting mechanism in the form of a function:

The idea is fairly simple: execute an external script written in vb or jscript. The script could refer to inputs, x, y, z in this example, and could set outputs that in this example would be assigned to a, b and c.
For example, expression above, where “my-script.vb” is
Sub PushBtnEvent_Start()
Rem TODO: Add your code here
End Sub
Sub PushBtnEvent_Exec(Inputs,Outputs)
Rem first output is the sum of the arguments
Outputs(0).value = Inputs(0).value + Inputs(1).value + Inputs(2).value
Rem Second output is the product
Outputs(1).value = Inputs(0).value * Inputs(1).value * Inputs(2).value
Rem third is 3.14
Outputs(2).value = 3.14
End Sub
Is equivalent to

This type of script would not have an object in the worksheet, like the current Mathsoft controls. We're also designing input controls as buttons, sliders, text box controls etc.
Would you like to have scripts such as above?
How would you use each type and why do you prefer one over the other?
Thanks for helping us rethink this functionality.
Mona

