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('.'):
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('.'):