Skip to main content
14-Alexandrite
November 4, 2025
Solved

Read the results from another Mathcad prime

  • November 4, 2025
  • 1 reply
  • 597 views

Hi there 

I tried to input the results from another mathcad file , but I guess I'm doing that wrong > in the following image I'm trying to import the results of ( R) 

YA_10963798_0-1762250869311.png

What is the correct function to import the results from one mathcad file to another?

When I searched in the community I found very old version which doesn't open in my laptop 

Thanks

Yusra

 

Best answer by StuartBruff

Hi, Yusra.

 

Do you still see errors when you include the worksheet in a blank worksheet?  Does your new worksheet have the same ORIGIN  as the one you want to include?

 

Are you sure that there are -- no -- errors, even minor ones, in the original worksheet?  I've had cases where I left an evaluation with an error.  Although the rest of the worksheet was fine, that one error flagged the whole sheet as having errors when I included it.

 

As for making the worksheet easier to read, do as I suggested above:  cut & paste the whole contents into an Area, then collapse the Area.  That means all of the workings will be hidden.  You could even lock the Area to prevent others having access to the Area if you're, say, sending the worksheet to a third-party.

 

The once caveat with Areas, though, is that a Mathcad Prime Area can't include Areas, so you'd have to partition the worksheet into several (collapsed) Areas.

 

Stuart.

1 reply

25-Diamond I
November 4, 2025

You may want to lookup the syntax of READFILE in the help -> Search: READFILE

Was the file written by WRITEFILE? 

The second parameter in READFILE should be the type, which can be "delimited", "fixed" or "Excel", but not "Mathcad Worksheet".

etc.

14-Alexandrite
November 4, 2025

So I should first write the results in the other files in ( WRITEFILE) and then insert them to the new mathcad file ? Is that what you are saying ?

25-Diamond I
November 4, 2025

I am not sure what exactly you a trying to achieve.

Is the file you try to read from a Mathcad worksheet? Then you cannot read-in variables from it using any of the READ.... functions!

You could 'include' it

Werner_E_0-1762256206094.png

This acts as if the content of the included worksheet would have been typed in at the position of the "include". So of course you also have access to the variables therein.

 

If you just intend to transfer a couple of variables you may be better off if you save it (maybe as an Excel file using WRITEEXCEL or by using any of the other WRITE... functions) and use the corresponding READ.... function to read in the data. But we are talking about the numerical values only, units will get lost during that process and you would have to add them yourself after reading in the data.