Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to save the editorial work on the contour plot?

Status
Not open for further replies.

zhankeliu

Mechanical
Jan 6, 2007
13
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.
 
Replies continue below

Recommended for you

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

corus
 
Thanks Corus, but how can I save the python script? I went through all the scroll-downs and did not find any.
 
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
 
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
 
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
 
Martin and Corus, I followed your advice and the mTAIL is working. I think it will help me to learn Python scripts.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor