×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to write PRNSOL output to a file

How to write PRNSOL output to a file

How to write PRNSOL output to a file

(OP)
I'd like to write a macro file that performs some PRNSOL commands on different components and, instead of having the results in the usual popup window, I'd like to have them directly in a txt file to use in other applications.
My ideal macro should than be:
...
...
cmsel,s,comp1
PRNSOL,U,SUM
<command to write to file1>
cmsel,s,comp2
PRNSOL,U,SUM
<command to write to file2>
...
...
Can anyone help me?!?!?

Many many thanks in advance
Al

RE: How to write PRNSOL output to a file

No problem:

...
...
cmsel,s,comp1
/output,comp1_output,txt     ! redirect output to a file called "comp1_output.txt"
PRNSOL,U,SUM
/out
cmsel,s,comp2
alls
/output,comp2_output,txt
PRNSOL,U,SUM
/out
...
...

The above will only work if you read the file in using the

/input

command or from

File > Read input from

So make sure you save the above in a separate text file and read it in.

Cheers,

-- drej --

RE: How to write PRNSOL output to a file

(OP)
Thank you very much, Drej.

After I wrote my question, I tried with "/out,file_name" too, but I missed to execute the macro: I only copied-pasted the lines into command line, and obviously in that case it doesn't work...

Too much work, not enough coffe!

Al

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources