Using "Animation" to loop a Mathcad 15 worksheet and writing solution to a text file
- June 16, 2022
- 1 reply
- 1165 views
I have used "Animation" together with WRITEPRN in Mathcad 15 to successfully loop a worksheet and export data to text files. If you record an animation in the attached worksheet, a text file shall be created for each FRAME. The name of each text file corresponds to the input variable of interest (IDpipe), whereas the entry in each text file contains the calculated quantity (WIDTH).
Is there a way to modify the contents inside WRITEPRN to make Mathcad store all results in one text file containing two columns (IDpipe & WIDTH), where number of rows with data corresponds to the number of FRAMES used to record that animation?
Currently I am using a workaround by letting Excel read the folder containing all solution text files. It would be more elegant though, to let Mathcad put everything in one text file right away.

