×
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 save the editorial work on the contour plot?

How to save the editorial work on the contour plot?

How to save the editorial work on the contour plot?

(OP)
I open an *.odb using ABAQUS/Viewer and do a series of editorial work so that the contour plot is displayed in the way I like. Now I want to save the edited contour plot so that I can open it next time and possibly put some more editorial work on it.

Does anyone know how I can save the edited contour layout?

Thanks in advance.

RE: How to save the editorial work on the contour plot?

Save the python script (in the .rpy file) for that session and re-run it next time you open Viewer.

corus

RE: How to save the editorial work on the contour plot?

(OP)
Thanks Corus, but how can I save the python script? I went through all the scroll-downs and did not find any.
 

RE: How to save the editorial work on the contour plot?

The script is saved automatically. Look for the abaqus.rpy file in your directory. I think it saves the last 5 sessions before over writing them. The file without an index number will be the last session. Open it in Notepad or whatever, and you should be able to recognise the commands you'd entered in Viewer. If you know python then you can always modfy the .rpy file to generalize it for future sessions, ie. making multi view ports etc.
Rename the .rpy file to something else (.rpy) to prevent it from being over written in future sessions.

corus

RE: How to save the editorial work on the contour plot?

Slightly OT and you need a Windows version of the Unix tail command, but I find this useful.

If I need to find the Python script for a particular Viewer command, I 'tail' the abaqus.rpy file in a command window alongside the viewer session.  You can then see the Python command in the .rpy file as you click in Viewer.

Martin

RE: How to save the editorial work on the contour plot?

^^^ Assumes that Viewer is running on Windows ^^^

RE: How to save the editorial work on the contour plot?

Martin,
That sounds useful. You can find a free version by googling mTAIL for a free (non-commercial) copy. It only saves the last 10 lines of the file, however, but is useful to see what is produced at the time it is typed in rather than trying to guess from looking at the final full .rpy file

corus

RE: How to save the editorial work on the contour plot?

(OP)
Martin and Corus, I followed your advice and the mTAIL is working. I think it will help me to learn Python scripts.

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