Public Member Functions | List of all members
MeshGroup Class Reference

MeshGroup class is used to specify a mesh group.
The class can be called from MeshGroupList class.
. More...

Public Member Functions

void AddSelected (Selection *selection)
 Adds selected element, element faces, element edges, or nodes to a mesh group. More...
 
void ClearParts ()
 Removes all elements, element faces, element edges, or nodes from a mesh group.
 
bool GetDifferentElementsPerCaseFlag ()
 Returns True if different elements are set for each case. More...
 
PartGetLinkedPart ()
 Returns the Part object which is linked from the mesh group. More...
 
String GetName ()
 Returns a mesh group name. More...
 
bool GetPartsFlag ()
 Returns True if selected elements are to be set to a new part or existing part. More...
 
SelectionGetSelection ()
 Returns information about elements, element faces, element edges, or nodes contained in a mesh group. More...
 
String GetType ()
 Returns the type of mesh group. More...
 
bool IsValid ()
 Returns True if an object is valid. More...
 
int NumParts ()
 Returns the number of elements, element faces, element edges, or nodes included in a mesh group. More...
 
void SetDifferentElementsPerCaseFlag (bool isOn)
 Specifies whether to set different elements for each case. More...
 
void SetLinkedPart (Variant &var)
 Specifies the part that is linked to this mesh group. More...
 
void SetName (String &name)
 Specifies mesh group name. More...
 
void SetPartsFlag (bool isOn)
 Specifies whether to set selected elements to a new or existing part. More...
 

Detailed Description

MeshGroup class is used to specify a mesh group.
The class can be called from MeshGroupList class.
.

Example of calling the class object:

app.GetModel(0).GetStudy(0).GetMeshGroupList().GetMeshGroup(0)

Member Function Documentation

void MeshGroup::AddSelected ( Selection selection)

Adds selected element, element faces, element edges, or nodes to a mesh group.

Parameters
selectionSelected elements, element faces, element edges, or nodes

For more information about Selection, see Selection .

bool MeshGroup::GetDifferentElementsPerCaseFlag ( )

Returns True if different elements are set for each case.

Returns
Whether or not the elements are different for each case
Part * MeshGroup::GetLinkedPart ( )

Returns the Part object which is linked from the mesh group.

Returns
The linked Part object
String MeshGroup::GetName ( )

Returns a mesh group name.

Returns
Mesh group name
bool MeshGroup::GetPartsFlag ( )

Returns True if selected elements are to be set to a new part or existing part.

Returns
Whether or not the selected elements are set to a new or existing part
Selection * MeshGroup::GetSelection ( )

Returns information about elements, element faces, element edges, or nodes contained in a mesh group.

Returns
Selection object
String MeshGroup::GetType ( )

Returns the type of mesh group.

Returns
Mesh group type
Element
ElementFace
ElementEdge
Node
bool MeshGroup::IsValid ( )

Returns True if an object is valid.

Returns
Whether or not the MeshGroup objects in the list are valid
int MeshGroup::NumParts ( )

Returns the number of elements, element faces, element edges, or nodes included in a mesh group.

Returns
Number of elements, element faces, element edges, or nodes included in a mesh group
void MeshGroup::SetDifferentElementsPerCaseFlag ( bool  isOn)

Specifies whether to set different elements for each case.

Parameters
isOnWhether to set different elements for each case
void MeshGroup::SetLinkedPart ( Variant &  var)

Specifies the part that is linked to this mesh group.

Parameters
varName or ID of the part
void MeshGroup::SetName ( String &  name)

Specifies mesh group name.

Parameters
nameMesh group name
void MeshGroup::SetPartsFlag ( bool  isOn)

Specifies whether to set selected elements to a new or existing part.

Parameters
isOnWhether to set selected elements to a new or existing part