
The set objects are used to identify regions of a model.
odb.parts()[name].elementSets()[name] odb.parts()[name].nodeSets()[name] odb.parts()[name].surfaces()[name] odb.rootAssembly().elementSets()[name] odb.rootAssembly().instances()[name].elementSets()[name] odb.rootAssembly().instances()[name].nodeSets()[name] odb.rootAssembly().instances()[name].surfaces()[name] odb.rootAssembly().nodeSets()[name] odb.rootAssembly().surfaces()[name] odb.steps()[name].frames(i).fieldOutputs()[name].values(i).instance()\ .elementSets()[name] odb.steps()[name].frames(i).fieldOutputs()[name].values(i).instance()\ .nodeSets()[name] odb.steps()[name].frames(i).fieldOutputs()[name].values(i).instance()\ .surfaces()[name]

This method creates a node set from an array of OdbMeshNode objects (for part instance-level sets) or from a sequence of arrays of OdbMeshNode objects (for assembly-level sets).
odb.parts()[name].NodeSet
odb.rootAssembly().instances()[name].NodeSet
odb.rootAssembly().NodeSet
odb_Set&
NodeSet(const odb_String& name,
const odb_SequenceNode& nodes);Required arguments
An odb_String specifying the name of the set and the repository key.
A sequence of OdbMeshNode objects. For example, for a part:
nodes=part1.nodes[1:5]For an assembly:nodes=(instance1.nodes[6:7], instance2.nodes[1:5])
Optional arguments
Return value
An OdbSet object.
Exceptions
InvalidNameError.

This method creates an element set from an array of OdbMeshElement objects (for part instance-level sets) or from a sequence of arrays of OdbMeshElement objects (for assembly-level sets).
odb.parts()[name].ElementSet
odb.rootAssembly().instances()[name].ElementSet
odb_Set&
ElementSet(const odb_String& name,
const odb_SequenceElement& elements);Required arguments
An odb_String specifying the name of the set and the repository key.
A sequence of OdbMeshElement objects. For example, for a part:
elements=instance1.elements[1:5]For an assembly:elements=(instance1.elements[1:5], instance2.elements[1:5])
Optional arguments
Return value
An OdbSet object.
Exceptions
InvalidNameError.

This method creates a node set.
odb.parts()[name].NodeSet
odb.rootAssembly().instances()[name].NodeSet
odb.rootAssembly().NodeSet
odb_Set&
NodeSet(const odb_String& name,
const odb_SequenceInt& nodeLabels);Required arguments
An odb_String specifying the name of the set and the repository key.
An odb_SequenceInt specifying the node labels.
Optional arguments
Return value
An OdbSet object.
Exceptions

This method creates a node set.
odb.rootAssembly().NodeSet
odb_Set&
NodeSet(const odb_String& name,
const odb_SequenceString& instanceNames,
const odb_SequenceSequenceInt& nodeLabels);Required arguments
An odb_String specifying the name of the set and the repository key.
An odb_SequenceString specifying the namespaces for nodeLabels.
An odb_SequenceSequenceInt specifying the node labels.
Optional arguments
Return value
An OdbSet object.
Exceptions

This method creates an element set.
odb.parts()[name].ElementSet
odb.rootAssembly().instances()[name].ElementSet
odb.rootAssembly().ElementSet
odb_Set&
ElementSet(const odb_String& name,
const odb_SequenceInt& elementLabels);Required arguments
An odb_String specifying the name of the set and the repository key.
An odb_SequenceInt specifying the element labels.
Optional arguments
Return value
An OdbSet object.
Exceptions

This method creates an element set.
odb.rootAssembly().ElementSet
odb_Set&
ElementSet(const odb_String& name,
const odb_SequenceString& instanceNames,
const odb_SequenceSequenceInt& elementLabels);Required arguments
An odb_String specifying the name of the set and the repository key.
An odb_SequenceString specifying the namespaces for elementLabels.
An odb_SequenceSequenceInt specifying the element labels.
Optional arguments
Return value
An OdbSet object.
Exceptions

This method creates a surface set.
odb.parts()[name].Surface
odb.rootAssembly().instances()[name].Surface
odb_Set&
Surface(const odb_String& name,
const odb_SequenceElement& elements,
const odb_SequenceElementFace& faces);Required arguments
An odb_String specifying the name of the set and the repository key.
An odb_SequenceElement specifying the elements in the surface.
An odb_SequenceElementFace specifying the element faces.
The possible face enumerations depend on the type of element, as described in the following table:
Optional arguments
Return value
An OdbSet object.
Exceptions

This method creates a surface set.
odb.parts()[name].Surface
odb.rootAssembly().instances()[name].Surface
odb_Set&
Surface(const odb_String& name,
const odb_SequenceInt& elementLabels,
const odb_SequenceElementFace& faces);Required arguments
An odb_String specifying the name of the set and the repository key.
An odb_SequenceInt specifying the element labels.
An odb_SequenceElementFace specifying the element faces. An odb_SequenceSequenceElementFace is required for an assembly set.
Optional arguments
Return value
An OdbSet object.
Exceptions

This method creates a surface set.
odb.rootAssembly().Surface
odb_Set&
Surface(const odb_String& name,
const odb_SequenceString& instanceNames,
const odb_SequenceSequenceInt& elementLabels,
const odb_SequenceSequenceElementFace& faces);Required arguments
An odb_String specifying the name of the set and the repository key.
An odb_SequenceString specifying the namespaces for elementLabels. This member is only valid for assembly sets.
An odb_SequenceSequenceInt specifying the element labels.
An odb_SequenceSequenceElementFace specifying the element faces.
Optional arguments
Return value
An OdbSet object.
Exceptions

The OdbSet object can have the following members:
odb_String name() const;
odb_SequenceString instanceNames();
odb_Node nodes(int index);
const odb_SequenceNode& nodes();
const odb_SequenceNode& nodes(const odb_String& instanceName);
odb_Element elements(int index);
const odb_SequenceElement& elements();
const odb_SequenceElement& elements(const odb_String& instanceName);
odb_Enum::odb_ElementFaceEnum faces(int index);
const odb_SequenceElementFace& faces() ;
const odb_SequenceElementFace& faces(const odb_String& instanceName);
odb_Enum::odb_SetTypeEnum type() const;An odb_String specifying the name of the set and the repository key.
An odb_SequenceString specifying the namespaces for the nodes, elements, and faces; None if the set is on a Part or an OdbInstance object.
A sequence of OdbMeshNode objects specifying if a set spans more than one part instance, this member is a sequence of sequences for each part instance.
A sequence of OdbMeshElement objects specifying if a set spans more than one part instance, this member is a sequence of sequences for each part instance.
An odb_SequenceElementFace specifying the element face. If a set spans more than one part instance, this member is a sequence of sequences for each part instance.