|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Creo TOOLKIT Function
|
Creo TOOLKIT Object
|
Meaning
|
---|---|---|
ProSelectionAsmcomp
pathGet() |
ProAsmcomppath
|
Assembly component path
|
ProSelectionModelitem
Get() |
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
|
ProSelectionDistance
Eval() |
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
|
ProSelectionWindow
IdGet() |
int
|
Window where a selection is done
|
ProSelectionDrawingGet()
|
ProDrawing
|
Drawing in which the selection was made.
|
ProSelectionDwgtblcell
Get() |
several integers
|
Table segment, row, and column of a selected drawing table cell
|
• | ProSelect() uses ProSelection as its output to describe everything about the selected item. |
• | ProGeomitemDistanceEval() uses ProSelection as its input, instead of ProGeomitem, so it can measure the distance between model items in different subassemblies. |
• | ProSelectionHighlight() and ProSelectionUnhighlight() use ProSelection as inputs to distinguish different instances of the same model item in different subassemblies, and also different drawing views of the same model. |
• | ProFeatureCreate() usually uses ProSelection objects to identify the geometry items the feature needs to reference. |
• | ProDrawingDimensionCreate() uses ProSelection objects to identify the entities the dimension will attach to and the drawing view in which the dimension is to be displayed. |
• | The graphics window |
• | The model tree |
• | The search tool |
• | External object |
• | Items external to the activated component |
ProError ProSelect ( char option[], /* (In) The selection filter. */ int max_count, /* (In) The maximum number of selections allowed. */ ProSelection *p_in_sel, /* (In) An array of pointers to selection structures used to initialize the array of selections. This can be NULL. */ ProSelFunctions *sel_func, /* (In) A pointer to a structure of filter functions. This can be NULL. */ ProSelectionEnv sel_env, /* (In) Use attribute PRO_SELECT_ACTIVE_
COMPONENT_IGNORE to also select items
external to the activate component. */ ProSelAppAction appl_act_data, /* (In) Use NULL. */ ProSelection **p_sel_array, /* (Out) A pointer to an array of pointers to selected items. This argument points to static memory allocated by the function. It is reallocated on subsequent calls to this function.*/ int *p_n_sels /* (Out) The actual number of selections made. The function allocates the memory for this function and reuses it on subsequent calls.*/ )
Creo Parametric Database Item
|
ProSelect() Option
|
ProType
|
---|---|---|
Geometry Items
|
||
Datum point
|
point
|
PRO_POINT
|
Datum axis
|
axis
|
PRO_AXIS
|
Datum plane
|
datum
|
PRO_SURFACE
|
Datum Feature Symbol
|
set_datum_tag
|
PRO_SET_DATUM_TAG
|
Coordinate system datum
|
csys
|
PRO_CSYS
|
Coordinate System Axis
|
csys_axis
|
PRO_CSYS_AXIS_X PRO_CSYS_AXIS_Y PRO_CSYS_AXIS_Z
|
Edge (solid or datum surface)
|
edge
|
PRO_EDGE
|
Vertex
|
edge_end
|
PRO_EDGE_START, or PRO_EDGE_END
|
Datum curve
|
curve
|
PRO_CURVE
|
Datum curve end
|
curve_end
|
PRO_CRV_START, or PRO_CRV_END
|
Composite Curve
|
comp_crv
|
PRO_CURVE
|
Edge (solid only)
|
sldedge
|
PRO_EDGE
|
Edge (datum surface only)
|
qltedge
|
PRO_EDGE
|
Pipe segment end
|
pipeseg_end
|
PRO_PSEG_START or PRO_PSEG_END
|
Surface (solid or quilt)
|
surface
|
PRO_SURFACE
|
Surface (solid)
|
sldface
|
PRO_SURFACE
|
Surface (datum surface)
|
qltface
|
PRO_SURFACE
|
Surface (point)
|
pntsrf
|
PRO_SURFACE_PNT
|
Quilt
|
dtmqlt
|
PRO_QUILT
|
Annotations
|
||
Dimension
|
dimension
|
PRO_DIMENSION
|
Reference dimension
|
ref_dim
|
PRO_REF_DIMENSION
|
Geometric tolerance
|
gtol
|
PRO_GTOL
|
3D symbol
|
symbol_3d
|
PRO_SYMBOL_INSTANCE
|
Note
|
any_note
|
PRO_NOTE
|
3D Note
|
note_3d
|
PRO_NOTE
|
3D surface finish
|
surffin_3d
|
PRO_SURF_FIN
|
Annotation element
|
annot_elem
|
PRO_ANNOTATION_ELEM
|
Drawing Items
|
||
Drawing view
|
dwg_view
|
PRO_VIEW
|
Drawing table
|
dwg_table
|
PRO_DRAW_TABLE
|
Draft entity
|
draft_ent
|
PRO_DRAFT_ENTITY
|
Detail symbol
|
dtl_symbol
|
PRO_SYMBOL_INSTANCE
|
Detail note
|
any_note
|
PRO_NOTE
|
Table cell
|
table_cell
|
PRO_DRAW_TABLE
|
Solids and Features
|
||
Feature
|
feature
|
PRO_FEATURE
|
Part
|
part
|
PRO_PART
|
Component Feature
|
membfeat
|
PRO_FEATURE
|
Assembly component model
|
component
|
PRO_PART, PRO_ASSEMBLY
|
Part or subassembly
|
prt_or_asm
|
PRO_PART, or PRO_ASSEMBLY
|
Miscellaneous Items
|
||
Creo Simulate Items
|
Refer to the table in the section Selection of Creo Simulate Items
|
|
External object
|
ext_obj
|
PRO_EXTOBJ
|
Diagram fixed connector, fixed component, or parametric connector
|
dgm_obj
|
PRO_DIAGRAM_OBJECT
|
Diagram wire (not a cable)
|
dgm_non_cable_wire
|
PRO_DIAGRAM_OBJECT
|
Solid Body
|
3d_body
|
PRO_BODY
|
ECAD conductor
|
ecad_cu
|
PRO_ECAD_CONDUCTOR
|
MBD table
|
table_3d
|
PRO_TABLE
|
• | PRO_SELECT_DONE_REQUIRED—Specifies that user has to click OK in the Select dialog box to get the selected items. |
• | PRO_SELECT_BY_MENU_ALLOWED—Specifies that search tool is available in the function ProSelect() when the attribute value is set to True, which is the default value. |
• | PRO_SELECT_BY_BOX_ALLOWED—Specifies that user must draw a bounding box to get the items selected within the box.
Note
The attribute PRO_SELECT_BY_BOX_ALLOWED can be used only for the types specified under “Geometry Items” in the above table.
|
• | PRO_SELECT_ACTIVE_COMPONENT_IGNORE—Specifies that user can select items external to the activate component. |
• | PRO_SELECT_HIDE_SEL_DLG—Specifies that the Select dialog box must be hidden. |
• | When using the function ProSelect() from within a loop, if you encounter the error PRO_TK_PICK_ABOVE (-14), then you must handle this error by returning control back to Creo Parametric. |
• | The function ProSelect() returns PRO_TK_NO_ERROR when you end the command without making any selection in Creo Parametric. The function returns the output argument p_n_sels as zero and the array p_sel_array as NULL. |
• | First Level Selection |
• | Second Level Selection |
• | Get the contents of the active selection buffer. |
• | Remove the contents of the active selection buffer. |
• | Add to the contents of the active selection buffer. |
• | There is no current selection buffer active. |
• | The selection does not refer to the current model. |
• | The item is not currently displayed and so cannot be added to the buffer. |
• | The selection cannot be added to the buffer in combination with one or more objects that are already in the buffer. For example: geometry and features cannot be selected in the default buffer at the same time. |