Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Confused on accessing odb files

Status
Not open for further replies.

frztrb

Mechanical
Sep 29, 2010
151
Hi All

I am using these lines after the job command , but I still get errors to open some element sets from odb

JobName='job1'
OdbName='job1.odb'

myodb=odbAccess.openOdb(path=OdbName) (actually this line makes the .odb file get locked so I can not run the same job with the same name again , how to resolve ?

elements = session.odbs['job1.odb'].rootAssembly.elementSets['ELEM'] this gives me nameError : odb is not defined

also I tried : odb.rootAssembly.elementSets['ELEM'] and I don't know which one is correct


I dont know whether to use the session.scratchOdbs[ before or not ? what is the right format of it ?








filename in os.listdir('.'):
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor