Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Sep 29, 2010
Messages
151
Location
IT
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

Back
Top