×
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

Python: How to work in the current ODB file?

Python: How to work in the current ODB file?

Python: How to work in the current ODB file?

(OP)
Hi,
I am writing a Python program in order to work on the current odb file.
I would like to know how to specify that it should use the current (already opened) odb file, in order to avoid to specify the path of the file in the command :odb= session.odbs[...].

Do you know the command I should include in the Python file in order not to write a program for each odb file?

See below for the beginning of the Python file.

from abaqus import *
from abaqusConstants import *
import visualization
import xyPlot
import displayGroupOdbToolset as dgo
session.viewports['Viewport: 1'].view.setValues(session.views['Front'])
session.viewports['Viewport: 1'].view.setProjection(projection=PARALLEL)
odb= session.odbs['/local/rkler/Documents/PUF2008/Flexion3pts/flexion3pts-module-C3D20R-Si-iso.odb']
session.xyDataListFromField(odb=odb, outputPosition=NODAL, variable=(('RF',
        NODAL, ((COMPONENT, 'RF2'), )), ('U', NODAL, ((COMPONENT, 'U2'), )), ),
        nodePick=(('COUTEAU-4', 1, ('[#0:10 #1 ]', )), ), )
...
..
.


Thanks

Rage

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