Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mathcad automation: passing a variable to Mathcad

Status
Not open for further replies.

RaphaelMD

Aerospace
Mar 24, 2008
3
Hi all,
I am building an application in VB.NET that calls a mathcad worksheet to solve a set of equations. Based on the example in the Developper's Reference I used the SetValue and GetValue command to handle the inputs and outputs. Now, it actually works fine, as long as the inputs are integers. Whenever I try to input a float nothing happens. I've tried to passe a float number as string using both "." and "," as decimal separator and I've tried to pass the value as Double too. Anyone has an idea of how to solve this problem?

Thanks!

Raphael
 
Replies continue below

Recommended for you

Thanks for the tip Fawkes. if I can't get it to work the way I want I'll probably try to edit the XML file. I hope I won't need to though as I'm merely trying to use the automation features as they are intended to be used! I've posted in the Mathcad Collaboratory as suggested by IRstuff. Otherwise any help is appreciated. I'm working with Mathcad 13 by the way.
 
Finally the issue has been resolved. The problem was that in my regional settings the comma was used as decimal separator, but couldn't be interpreted by Mathcad.

Fixed!

Raphaël
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor