User's Guide > User Interface: Selection > The Selection Object > Unpacking a ProSelection Object
Unpacking a ProSelection Object
 
For each item of information that ProSelection can contain, there is a Creo TOOLKIT function that extracts that information. The following table lists these items.
Creo TOOLKIT Function
Creo TOOLKIT Object
Meaning
ProSelectionAsmcomppathGet()
ProAsmcomppath
Assembly component path
ProSelectionModelitemGet()
ProModelitem
Model item
ProSelectionPoint3dGet()
ProPoint3d
3-D point on the model item
ProSelectionUvParamSet()
ProUvParam
u and v, ort, of that point
ProSelectionDepthGet()
double
Selection depth
ProSelectionDistanceEval()
double
Distance between two selected objects. The selection objects can be surfaces, entities, surface-curves, surface-nodes, or points.
ProSelectionViewGet()
ProView
Drawing view in which the selection was made
ProSelectionWindowIdGet()
int
Window where a selection is done
ProSelectionDrawingGet()
ProDrawing
Drawing in which the selection was made.
ProSelectionDwgtblcellGet()
several integers
Table segment, row, and column of a selected drawing table cell
The assembly component path is the path down from the root assembly to the model that owns the database item being referenced. It is represented by the object ProAsmcomppath and is described fully in the Assembly: Basic Assembly Access section.
The model item describes the database item in the context of its owning model, but does not refer to any parent assembly.
The 3-D point is the location, in solid coordinates, of a selected point on the model item, if it is a geometry object. The solid coordinates are those of the solid directly owning the model item.
If the model item is a surface, ProUvParam contains the u and v values that correspond to the 3-D selection point described above. If the item is an edge or curve, ProUvParam contains the t value.
The selection depth is the distance between the selected point and the point from which the selection search started. This is important only when you are using ProSolidRayIntersectionCompute(), described in the section Ray Tracing.
The view is used to distinguish different views of a solid in a drawing.
這是否有幫助?