Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
I've installed a DLL with custom functions and it appears undefined to worksheet until I recalculate.
For example, Mathcad was compaining what CustomFunctions variable is undefined even when I managed to install DLL properly, only when I did Ctrl+F5 CustomFunctions reflected the actual state of things. And if I close Mathcad and deinstall DLL, opening the same document will prentend it is still there (again, old infromation shown until recalculated)
Is there a way to have Mathcad to not cache previous data and recalculate whole document on open?
opening the same document will prentend it is still there (again, old infromation shown until recalculated)
Is there a way to have Mathcad to not cache previous data and recalculate whole document on open?
This begaviour was, as far as I know, implemented un purpose to reduce loading time. Without it Prime Express wouldn't be able to show worksheets containing "premium" features.
I guess there is no way to change it and implement an auto-recalc.
It is caching the worksheets and information is my guess. Disable the cache in the Input/Output tab.
Jake Roth wrote:
It is caching the worksheets and information is my guess. Disable the cache in the Input/Output tab.
No, this options has nothing to do with the effect discussed here. It only affects included/referenced other worksheets.
Hello, gentlemen. Thank you for the input.
I finally figured out rather crude but working solution
@ECHO OFF
REM Uses InfoZip syntax
ZIP -d %1 mathcad\result.xml
this removes a part of specified OpenXML file (denoted by %1), effectively invalidating the whole document.
this removes a part of specified OpenXML file (denoted by %1), effectively invalidating the whole document.
Yes, but is doesn't force a recalculation of the worksheet on startup. Plots are blank and evaluations are shown as question mark. But at least you don't see any (wrong) old results that way.