Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- odb_file_path=r'your_pathfile.odb'
- odb = session.openOdb(name=odb_file_path)
- instance = odb.rootAssembly.instances['MY_PART']
- material_name = instance.elements[0].sectionCategory.name[8:-2]
- density=odb.materials[material_name].density.table[0][0])
Add Comment
Please, Sign In to add comment