Public Member Functions | List of all members
SetList Class Reference

SetList class is used to manage the list of Set objects. It enables to create, duplicate, and delete a Set.
The class can be called from Model class.
. More...

Public Member Functions

SetCopySet (Set *cutplane)
 Creates information for specified sets. More...
 
SetCreateEdgeSet (String &name=String("untitled"))
 Creates an edge set. More...
 
SetCreateFaceSet (String &name=String("untitled"))
 Creates a face set. More...
 
SetCreatePartSet (String &name=String("untitled"))
 Creates a part set. More...
 
SetCreateVertexSet (String &name=String("untitled"))
 Creates a vertex set. More...
 
void DeleteSet (Variant &var)
 Deletes the set information. More...
 
void DeleteUnusedSets ()
 Deletes unused sets.
 
SetDuplicateSet (Variant &var)
 Copies the set by specifying the name or index. More...
 
SetGetSet (Variant &var)
 Returns the Set object by specifying the name or index. More...
 
bool IsValid ()
 Returns True if an object is valid. More...
 
int NumSet ()
 Returns the number of sets included in an assembly. More...
 

Detailed Description

SetList class is used to manage the list of Set objects. It enables to create, duplicate, and delete a Set.
The class can be called from Model class.
.

Example of calling the class object:

app.GetModel(0).GetSetList()

Member Function Documentation

Set * SetList::CopySet ( Set cutplane)

Creates information for specified sets.

Parameters
cutplaneSet object
Returns
Set object
Set * SetList::CreateEdgeSet ( String &  name = String("untitled"))

Creates an edge set.

Parameters
nameSet name
Returns
Set object
Set * SetList::CreateFaceSet ( String &  name = String("untitled"))

Creates a face set.

Parameters
nameSet name
Returns
Set object
Set * SetList::CreatePartSet ( String &  name = String("untitled"))

Creates a part set.

Parameters
nameSet name
Returns
Set object
Set * SetList::CreateVertexSet ( String &  name = String("untitled"))

Creates a vertex set.

Parameters
nameSet name
Returns
Set object
void SetList::DeleteSet ( Variant &  var)

Deletes the set information.

Parameters
varName or index of the set

The oldest set is deleted when specifying a set to be deleted with a name and multiple sets with the same name exist.

Set * SetList::DuplicateSet ( Variant &  var)

Copies the set by specifying the name or index.

Parameters
varName or index of the set
Returns
Set object
Set * SetList::GetSet ( Variant &  var)

Returns the Set object by specifying the name or index.

Parameters
varName or index of the set
Returns
Set object
bool SetList::IsValid ( )

Returns True if an object is valid.

Returns
Whether or not the SetList object in the list is valid
int SetList::NumSet ( )

Returns the number of sets included in an assembly.

Returns
Number of sets