How to define variables in Mathcad using API via Excel 2010
Hi All,
I was hoping someone might be able to help. I'm using Mathcad 14 to perform calculation cases. I could easily have 50 sets of case in either Excel or Matlab and need to generate 50 corresponding worked through cases. Ideally I would like to generate each case file as a Mathcad file with one iteration of the case data inserted in the corresponding variable definitions.
So far I can open Mathcad using VBA in Excel 2010, write values to evaluation expressions i.e. "t = 3" but am unable to set variable definitions i.e. "t:=3". This matters because when I save the sheet any evaluation expressions that are not defined reset to 0.
I can iterate through my fifty sheets and 'get' the variable back to Excel but I need to show the 'working' on each adn thus generate the corresponding Mathcad sheet at each stage. Can anyone point me to the correct syntax (if it exists) to do this?
Greg

