issubset() method in Python

 

Hi Everyone,

Issubset() method can be used to determine if a particular node/element exists within a nodeSet or elementSet object. Please see below for the syntax:

-----

elements=odb.rootAssembly.instances[instanceName].elementSet[setName].elements

el = ele[0].label

 a = set([el])

print a.issubset([i.label for i in elements])

------

Similarly, this method can be used with getFaces(), getEdges(), getVertices() methods to determine if the faces/edges/vertices are subset of another list.

Thanks

Srikanth