Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Saving ODB File by Python: error attempt to truncate read only table

Status
Not open for further replies.

mika3049

Materials
Nov 4, 2016
17
Hi,
I want to read ODB file and then add a field, and save the resulting ODB file.
The coode is very easy (given below).
But I get the error message:
OdbError: database save failed. **error attempt to truncate read only table.

Probably, the problem is in the ODB file, not in code itself.

Has anyone an idea what can be wrong there?

The code is:
from odbAccess import *
from abaqusConstants import *
from odbMaterial import *
from odbSection import *
from numpy import fabs as fabs
import numpy as np
import sys
import math
import os
import datetime
from types import IntType
print(' Reading ODB ' )
odb = openOdb(path='iog.odb')
odb.save()
odb.close()
 
Replies continue below

Recommended for you

The odb is opened by default as read only. You have to change this setting when opening the odb. Take a look in the Scripting Reference Manual for openOdb(...).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor