Library | File

Class pfcSelection

# include <pfcSelect.h>

class pfcSelection
 : public virtual pfcObject
{
    xaideclare(pfcSelection)
    ...
};



Description

This class represents a selection.
Manual References:
Features: Creating a Custom UDF, Annotations: Annotation Features and Annotations: Accessing Reference and Driven Dimensions, Annotations: Annotation Features and Annotations: Baseline Dimensions, Annotations: Annotation Features and Annotations: Ordinate Dimensions, Drawings: Creating Drawing Dimensions, Drawings: Listing Drawing Views, Drawings: Modifying Views, Drawings: Auxiliary Views, Drawings: Revolved Views, Drawings: Sections of a View, Drawings: Parametric Attachment, Drawings: Offset Attachment, Assemblies and Components: Structure of Assemblies and Assembly Objects, Overview of Creo Object TOOLKIT C++: Casting of Creo Object TOOLKIT C++ pfc Classes to wfc Classes, Technical Summary of Changes for Creo 4.0 M060: Selection, Selection: Programmatic Selection, Feature Element Tree: Element Tree Types
Direct Known Subclasses:
wfcWSelection



Method Summary

voidDisplay ()
Displays the selection. Note that this is a one-time action (the next repaint will erase this display).
xrealGetDepth ()
The depth of the selection
pfcUVParams_ptrGetParams ()
voidSetParams (pfcUVParams_ptr value)
The UV parameters
optional pfcComponentPath_ptrGetPath ()
voidSetPath (optional pfcComponentPath_ptr value)
The component path
pfcPoint3D_ptrGetPoint ()
voidSetPoint (pfcPoint3D_ptr value)
The point
xstringGetSelectionString ()
Web.Link style selection string representation for this selection.
optional pfcModelItem_ptrGetSelItem ()
voidSetSelItem (optional pfcModelItem_ptr value)

This method is enabled for Creo Direct.

The selected model item
optional pfcModel_ptrGetSelModel ()

This method is enabled for Creo Direct.

The selected model
optional pfcTableCell_ptrGetSelTableCell ()
voidSetSelTableCell (optional pfcTableCell_ptr value)
The table cell, or null, if the selection does not represent a drawing table cell selection.
optional xintGetSelTableSegment ()
The drawing table segment, or null, if the selection does not contain a drawing table.
optional pfcView2D_ptrGetSelView2D ()
voidSetSelView2D (optional pfcView2D_ptr value)
The drawing view, or null, if the selection does not contain a drawing view.
optional xrealGetTParam ()
voidSetTParam (optional xreal value)
The T parameter of an edge or curve
voidHighlight (pfcStdColor Color)

This method is enabled for Creo Direct.

Highlights the selection in the current window. The selection remains highlighted until you call the Unhighlight() function.

This method is enabled for Creo Direct.

voidUnHighlight ()
Removes the highlighting from the selection highlighted by a previous call to the Highlight() function.



Method Detail

optional pfcModel_ptrGetSelModel ()

This method is enabled for Creo Direct.


The selected model

Exceptions thrown (but not limited to):

pfcXToolkitNotExist - The model item doesn't exist.

pfcXToolkitNotFound - no associated drawing found


Manual References:
Models: Getting a Model Object, Models: Getting a Model Object, Selection: Accessing Selection Data, Selection: Accessing Selection Data




optional pfcModelItem_ptrGetSelItem ()
voidSetSelItem (optional pfcModelItem_ptr value)

This method is enabled for Creo Direct.


The selected model item

Exceptions thrown (but not limited to):

pfcXToolkitNotExist - The model item doesn't exist.


Manual References:
ModelItem: Getting ModelItem Objects, ModelItem: Getting ModelItem Objects, Drawings: Obtaining Drawing Dimensions, Drawings: Selecting Drawing Tables and Cells, Drawings: Selecting Drawing Tables and Cells, Selection: Accessing Selection Data, Selection: Accessing Selection Data, Selection: Programmatic Selection, Selection: Programmatic Selection




optional pfcTableCell_ptrGetSelTableCell ()
voidSetSelTableCell (optional pfcTableCell_ptr value)

The table cell, or null, if the selection does not represent a drawing table cell selection.
Manual References:
Drawings: Selecting Drawing Tables and Cells, Drawings: Selecting Drawing Tables and Cells, Selection: Accessing Selection Data, Selection: Accessing Selection Data, Selection: Programmatic Selection, Selection: Programmatic Selection




optional pfcView2D_ptrGetSelView2D ()
voidSetSelView2D (optional pfcView2D_ptr value)

The drawing view, or null, if the selection does not contain a drawing view.

Exceptions thrown (but not limited to):

pfcXToolkitNotFound - no associated drawing found


Manual References:
Drawings: Obtaining Drawing Views, Drawings: Obtaining Drawing Views, Selection: Accessing Selection Data, Selection: Accessing Selection Data, Selection: Programmatic Selection




optional xintGetSelTableSegment ()

The drawing table segment, or null, if the selection does not contain a drawing table.
Manual References:
Drawings: Selecting Drawing Tables and Cells, Drawings: Drawing Table Segments, Drawings: Drawing Table Segments, Selection: Accessing Selection Data, Selection: Accessing Selection Data




optional pfcComponentPath_ptrGetPath ()
voidSetPath (optional pfcComponentPath_ptr value)

The component path
Manual References:
Selection: Accessing Selection Data, Selection: Accessing Selection Data, Selection: Programmatic Selection, Selection: Programmatic Selection




pfcUVParams_ptrGetParams ()
voidSetParams (pfcUVParams_ptr value)

The UV parameters
Manual References:
Selection: Accessing Selection Data, Selection: Accessing Selection Data, Selection: Programmatic Selection, Selection: Programmatic Selection




optional xrealGetTParam ()
voidSetTParam (optional xreal value)

The T parameter of an edge or curve
Manual References:
Selection: Accessing Selection Data, Selection: Accessing Selection Data, Selection: Programmatic Selection, Selection: Programmatic Selection




pfcPoint3D_ptrGetPoint ()
voidSetPoint (pfcPoint3D_ptr value)

The point

Exceptions thrown (but not limited to):

pfcXToolkitInvalidPtr - The selection argument is an invalid pointer.


Manual References:
Selection: Accessing Selection Data, Selection: Accessing Selection Data, Selection: Programmatic Selection, Selection: Programmatic Selection




xrealGetDepth ()

The depth of the selection

Exceptions thrown (but not limited to):

pfcXToolkitInvalidPtr - The selection argument is an invalid pointer.


Manual References:
Selection: Accessing Selection Data, Selection: Accessing Selection Data




xstringGetSelectionString ()

Web.Link style selection string representation for this selection.




voidHighlight (pfcStdColor Color)

This method is enabled for Creo Direct.


Highlights the selection in the current window. The selection remains highlighted until you call the Unhighlight() function.
Manual References:
Selection: Controlling Selection Display, Selection: Controlling Selection Display
Parameters:
Color
The highlight color
Returns:



voidUnHighlight ()

Removes the highlighting from the selection highlighted by a previous call to the Highlight() function.
Manual References:
Selection: Controlling Selection Display, Selection: Controlling Selection Display
Returns:



voidDisplay ()

Displays the selection. Note that this is a one-time action (the next repaint will erase this display).
Manual References:
Selection: Controlling Selection Display
Returns: