Hi,
I am trying to access the nodes and elements in the odb file by python and I have the following code:
subField = frame.fieldOutputs['SDV3']
for subvalue in subField.values:
element_label.append(subvalue.elementLabel)
for ele in element_label:
node =instance.elements[ele - 1].connectivity
I found that we need to treat elements as list objects rather than dictionary when accessing odb file since if I use ele instead of ele-1, I will get an error like index out of range. The same thing occurs for the nodes. Is this correct? But when I set up the model with python and try to access the elements and the nodes, it seems that I do not have this problem. I am wondering whether elements and nodes objects are treated as dictionary in pre-processing but as list objects in post-processing. Thanks!