28.6 MeshElementArray object

The MeshElementArray is a sequence of MeshElement objects.

Access
import part
mdb.models[name].parts[name].allInternalSets[name].elements
mdb.models[name].parts[name].allInternalSurfaces[name].elements
mdb.models[name].parts[name].allSets[name].elements
mdb.models[name].parts[name].allSurfaces[name].elements
mdb.models[name].parts[name].elements
mdb.models[name].parts[name].sets[name].elements
mdb.models[name].parts[name].surfaces[name].elements
import assembly
mdb.models[name].rootAssembly.allInternalSets[name].elements
mdb.models[name].rootAssembly.allInternalSurfaces[name].elements
mdb.models[name].rootAssembly.allSets[name].elements
mdb.models[name].rootAssembly.allSurfaces[name].elements
mdb.models[name].rootAssembly.elements
mdb.models[name].rootAssembly.instances[name].elements
mdb.models[name].rootAssembly.instances[name].sets[name].elements
mdb.models[name].rootAssembly.instances[name].surfaces[name].elements
mdb.models[name].rootAssembly.sets[name].elements
mdb.models[name].rootAssembly.surfaces[name].elements


28.6.1 getFromLabel(...)

This method returns the object in the MeshElementArray with the given label.

Required argument

label

An Int specifying the label of the object.

Optional arguments

None.

Return value

A MeshElement object.

Exceptions

None.


28.6.2 getSequenceFromMask(...)

This method returns the object or objects in the MeshElementArray identified using the specified mask. This command is generated when the JournalOptions are set to COMPRESSEDINDEX. When large number of objects are involved, this method is highly efficient.

Required argument

mask

A String specifying the object or objects.

Optional arguments

None.

Return value

A MeshElement object.

Exceptions

None.


28.6.3 sequenceFromLabels(...)

This method returns the object or objects in the MeshElementArray identified using the specified labels.

Required argument

labels

A sequence of Ints specifying the labels.

Optional arguments

None.

Return value

A MeshElement object.

Exceptions

None.


28.6.4 sequenceFromLabels(...)

This method returns the object or objects in the MeshElementArray identified using the specified labels.

Required argument

labels

A sequence of Ints specifying the labels.

Optional arguments

None.

Return value

A MeshElement object.

Exceptions

An exception occurs if the resulting sequence is empty.

Error: The mask results in an empty sequence


28.6.5  Members

The MeshElementArray object has no members.