Skip to main content
1-Visitor
October 5, 2015
Question

Question regarding READPRN

  • October 5, 2015
  • 3 replies
  • 1626 views

I am able to successfully import data via a text file (.txt) by using this READPRN command. However when the .txt file changes (i.e. data change), the import matrix in MathCAD is not automatically updated. I need to close the program down and re-open to have the updated numbers.

The question here is, whether if there is a nicer way to do this? Another command maybe?

I know I can always do right click “disable evaluation” and “enable evaluation”, but the problem is I open/use this Mathcad sheet through an easy batch code for an another program, so mouse commands are not an option for me.

Thanks in advance!

3 replies

19-Tanzanite
October 5, 2015

Select the READPRN statement and hit F9.

eakgn1-VisitorAuthor
1-Visitor
October 5, 2015

Thank you for the reply. I didn't know about F9 and in future it will help me for sure.

But it is unfortunetly not helpful for the above stated problem. I am trying to automize a process and I want MathCAD to do this refresh job (F9) either automatically or by an another command.

So far I am able to accomplish this by using following batch codes:

start "C:...\main.xmcd"

taskkill mathcad.exe

But closing & opening mathcad every time in order to refresh some data is brutal and I am looking for a nicer solution.


19-Tanzanite
October 5, 2015

Mathcad is not the right piece of software to automate a process. There's no way to make it continuously poll an input and update when the input changes. It's simply not designed to do that.

Which version of Mathcad are you using?