Function ProSelect
Description
Selects an object in a Creo Parametric window.
NOTE: If the user ends the selection without actually making any, ProSelect will return PRO_TK_NO_ERROR with (*p_n_sels) as zero and p_sel_array as NULL.
Replacement in Object TOOLKIT:
Synopsis
#include <ProSelection.h>
ProSelect
(
char option[]
/* (In)
The selection filter. See the Creo Parametric TOOLKIT User's Guide for more information.
*/
int max_count
/* (In)
The maximum number of selections allowed.
*/
ProSelection* p_in_sel
/* (In)
A ProArray of pointers to ProSelection structures (from a previous call to selection) 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.
*/
/* (In)
Use ProSelectionEnvAlloc() to allocate this argument. Can be NULL.
*/
ProSelAppAction appl_act_data
/* (In)
NULL in Release 18 and higher.
*/
ProSelection** p_sel_array
/* (Out)
A pointer to an array of ProSelection structures. 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.
*/
)
Returns
The user made a selection, or chose Done.
The user chose Quit.
Selection was interrupted by a user's pick on any button from above menus.
The Creo Parametric user interface is not prepared to handle this request (because it is blocked by another process such as an OLE container activation).
See Also
Sample Code References
User Guide References
War dies hilfreich?