cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How do you get mathcad open text file with notepad?

Sebastien1
1-Newbie

How do you get mathcad open text file with notepad?

I saved some text using the WRITEPRN function.

I would like to open this file with notepad.

Tried button with script using open or shell command but it did not work any ideas?

1 ACCEPTED SOLUTION

Accepted Solutions
MikeArmstrong
5-Regular Member
(To:Sebastien1)

Did you find the worksheet I posted any use?

Mike

View solution in original post

9 REPLIES 9
MikeArmstrong
5-Regular Member
(To:Sebastien1)

This button fires up Notepad from with Mathcad.

Mike

MikeArmstrong
5-Regular Member
(To:Sebastien1)

I saved some text using the WRITEPRN function.

I would like to open this file with notepad.

Tried button with script using open or shell command but it did not work any ideas?

I've just re-read your question

Why would you want to open a text file from within Mathcad?

Mike

The file contains some test instructions to be saved in a database, Just trying to create an easy shortcut to the file for the users.

MikeArmstrong
5-Regular Member
(To:Sebastien1)

Did you find the worksheet I posted any use?

Mike

That did it, I added the file name in the text string and it opened.

My problem is now that I do not want the extra string delimiter included with the WRITEPRN command.

Neither do I want the: written by MatCAD title.

I just want the plain text.

I am considering a text box to provide the results, but I need to find how the specify the return carrier or end of paragraph.

In VB i normally use CHR(13) but in mathcad I still Have not found what to use.

Can you help there?

MikeArmstrong
5-Regular Member
(To:Sebastien1)

Can you provide the working sheet please. I'm away from all my reference material.

Mike

RichardJ
19-Tanzanite
(To:Sebastien1)

My problem is now that I do not want the extra string delimiter included with the WRITEPRN command.

Neither do I want the: written by MatCAD title.

I just want the plain text.

I am considering a text box to provide the results, but I need to find how the specify the return carrier or end of paragraph.

In VB i normally use CHR(13) but in mathcad I still Have not found what to use.

You need to use a scripted component to write the file. There are a couple of examples in the worksheet here: Extra Components.mcd

They might not do exactly what you want, but if you are familiar with VB you should have no problem modifying them slightly. If you do modify them in some generally useful way (i.e. something other people may also have a use for ) please post the new versions here.

Thank you so much this extra component file is a gold mine!

I appriciate the help!

MikeArmstrong
5-Regular Member
(To:Sebastien1)

Thought I maze well post Philip Oakleys worksheet.

Mike

Top Tags