Public Member Functions | List of all members
GeomSelection Class Reference

GeomSelection Class
The commands in the GeomSelection class are described below.
. More...

Public Member Functions

void Add (ItemObject *object)
 Selects an object, such as a part, face, edge, or vertex. More...
 
void AddReferenceObject (ReferenceObject *object)
 Adds ReferenceObject to the list. More...
 
void Clear ()
 Clears the selection of an object.
 
void Copy ()
 Copies the selected object.
 
int Count ()
 Returns the number of objects that are selected. More...
 
int CountReferenceObject ()
 Returns number of selected ReferenceObject. More...
 
void Cut ()
 Cuts the object that is selected.
 
void Delete ()
 Deletes an object that is selected.
 
ReferenceObjectGetReferenceObject (int iIndex)
 Returns the ReferenceObject that is selected. More...
 
ItemObjectItem (int iIndex)
 Returns a list of objects that are selected. More...
 
void Paste ()
 Pastes the object that is selected.
 
void Paste2D (double X, double Y)
 Pastes the object that is selected (displacement is specified). More...
 
void Remove (int iIndex)
 Removes the objects which IDs are selected from all of the selected objects. More...
 
void Reorder (ItemObject *object, ItemObject *target)
 Moves the order next to the specified object (target) for the object (base) that is selected. More...
 

Detailed Description

GeomSelection Class
The commands in the GeomSelection class are described below.
.

The GeomSelection class includes the commands for the following operation.

Member Function Documentation

void GeomSelection::Add ( ItemObject object)

Selects an object, such as a part, face, edge, or vertex.

Parameters
objectItemObject object
void GeomSelection::AddReferenceObject ( ReferenceObject object)

Adds ReferenceObject to the list.

Parameters
objectReferenceObject object
int GeomSelection::Count ( )

Returns the number of objects that are selected.

Returns
Number of objects that are selected
int GeomSelection::CountReferenceObject ( )

Returns number of selected ReferenceObject.

Returns
Number of ReferenceObject
ReferenceObject * GeomSelection::GetReferenceObject ( int  iIndex)

Returns the ReferenceObject that is selected.

Parameters
iIndexIndex of ReferenceObject
Returns
ReferenceObject object
ItemObject * GeomSelection::Item ( int  iIndex)

Returns a list of objects that are selected.

Parameters
iIndexList of IDs
Returns
ItemObject object
void GeomSelection::Paste2D ( double  X,
double  Y 
)

Pastes the object that is selected (displacement is specified).

Parameters
XDisplacement of X-direction
YDisplacement of Y-direction
void GeomSelection::Remove ( int  iIndex)

Removes the objects which IDs are selected from all of the selected objects.

Parameters
iIndexIDs of the objects that are selected
void GeomSelection::Reorder ( ItemObject object,
ItemObject target 
)

Moves the order next to the specified object (target) for the object (base) that is selected.

Parameters
objectName or ID of the object
targetName or ID of the object

The procedures for setting the constraint changes (first one selected is the master and the second and after is the slave) by the order in which the basic shapes specified as the target when constraint is added.
In this case, the order can be switched by selecting Reorder.