I am using the Abaqus ODB C++ API. I am writing a wrapper to visualize .odb files.
The following code will load the part named “PART-1” into the object part
odb_Odb& odb = openOdb( filename.c_str() );
odb_PartRepository& pr = odb.parts();
odb_Part& part = pr["PART-1"];
This code is great if you know what a part’s name is, but how can I access parts when I do not know their name? Why would the writers of the API limit us to indexing via string?
After a lot of searching I found the following solution.
See section
10.10.5 Reading results dataof this document:http://abaqus.ethz.ch:2080/v6.11/pdf_books/SCRIPT_USER.pdf
You must use repository iterators to extract the possible keys.