Skip to main content
1-Visitor
December 22, 2010
Question

Call Mathcad from Fortran

  • December 22, 2010
  • 14 replies
  • 7938 views

Dear all,

does anyone know if it is possible to call a Mathcad worksheet from a Fortran subroutine?

Any example or tip will be really appreciated.

Thank you very much for your help.

Mirella

(Paul's colleague)

14 replies

1-Visitor
December 27, 2010
1-Visitor
January 4, 2011

Mike,

thank you very much for your answer, but this is not exactly what I was looking for.

Probably I didn't give enough details in my previous message.

I have prepared a Fortran subroutine that calculates some input values for a Mathcad spreadsheet. The Mathcad spreasheet use these input values and give an output value that must be used in the Fortran subroutine for further calculations. This is the reason why I need to "call" somehow my Mathcad spreadsheet within my Fortran subroutine; but I am not sure if this is possible.

The other simple solution is to write again my Mathcad spreadsheet in Fortran (as you suggested) but this is what I am trying to avoid.

Thank you

Best regards

Mirella

1-Visitor
January 4, 2011
I have prepared a Fortran subroutine that calculates some input values for a Mathcad spreadsheet. The Mathcad spreasheet use these input values and give an output value that must be used in the Fortran subroutine for further calculations. This is the reason why I need to "call" somehow my Mathcad spreadsheet within my Fortran subroutine; but I am not sure if this is possible.

It seems to me that this is more of a question for the Fortran software.

You can export out of Mathcad in a number of formats. What format does Fortran accept?

Mike