Read .odb in Hypermath
Hello,
I hope someone can help me with the following problem:
I am trying to read in the results from an .odb file (abaqus results file, abaqus 6.13) in Hypermath. Results are displayed perfectly in Hyperview, however, when I try to read them in using the following commands in Hypermath, there seems to be no subcase:
inpfile = 'test.odb'
nsubcase = GetTotalSubcases(inpfile)
print(nsubcase)
list = GetSubcaseList(inpfile)
results in:
1
Error: No subcase found
so, there is 1 subcase when requesting the total nuber of subcases, but when requesting any other data, suddenly there is no subcase anymore.
Who can help me reading in .odb results in Hypermath? (first opening the results in Hyperview and manually export them as .h3d is no option for me)
Kind regards.
Edit:
toc=ReadFileToc(inpfile)
results in the variable browser in
- toc <table> table
-Subcases <table> table
- 1 <table> table
- Type <table> table
Total 0 number
Name default string
Total 1 number
Answers
-
Hello,
The problem is that these commands require fully qualified filenames, that is the complete path to the file.
So for example, you would need
inpfile = 'C:/MyFiles/odb/test.odb'.
Thanks.
0 -
Thank you so much for your reply; I thought that changing the current working directory to the path with the .odb file would be enough.
Kind regards.
0