Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Mathcad Reference Sheet and API Problems

Status
Not open for further replies.

JipHeadJim

Mechanical
Sep 26, 2007
5
Hi

I have a mathcad sheet that will read a large block of data from an excel file, then filter based or 2 or 3 search terms. The filtered data is then used in the calculations.

The search terms, and all other variables will be entered via the API from a web interface.

The programming loops etc needed to filter the data do not need to be visible on the sheet, in fact i would prefer it itf they weren't visible as they just confuse matters. I have tried hiding the sections containing the programming loops etc using areas, but this causes problems with the API, it ignores any changes to variables within the hidden sections.

I am experimenting with using the 'Reference' function to reference the original worksheet (with programming loops etc visible) and create a summary worksheet. Standard variables work ok e.g.
Main Sheet -> T:=50
produces
Summary Sheet -> T=50

However, when i call a variable that has been computed or looked up I just get a 'variable not defined' message. When I open the main sheet everything is working fine.

Anybody got any ideas?

Cheers
 
Replies continue below

Recommended for you

OK i have done a bit more digging on this. The problem seems to be coming from some "READFILE" commands I have at the start of the master sheet. These read the source data from an excel worksheet, which is then filtered as mentioned before. It is the "READFILE" function that does not seem to be working when referencing the master worksheet. Can anyone think of a way around this?

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor