Function ProParameterSelect
Description
Prompts the user to select one or more parameters from the parameter dialog in Creo Parametric.
Note: The top model from which the parameters will be selected must be displayed in the current window.
Replacement in Object TOOLKIT:
Synopsis
#include <ProParameter.h>
ProParameterSelect
(
/* (In)
The owner of the parameters to be selected. May be NULL if the parameter should be selected by context.
*/
ProMdl top_model
/* (In)
The top level model from which parameters will be selected.
*/
int context
/* (In)
A bitmask containing the context of parameter selection (Members of ProParameterSelectContext). Used only if "owner" is NULL.
*/
ProBoolean select_multiple
/* (In)
PRO_B_TRUE to allow multiple selections. PRO_B_FALSE otherwise.
*/
wchar_t* button_label
/* (In)
Label for select button, or NULL to use default label.
*/
ProParameter* parameter
/* (Out)
If select_multiple is PRO_B_FALSE should contain the selected parameter. NULL should be passed if select_multiple is PRO_B_TRUE.
*/
ProParameter** multi_parameters
/* (Out)
If select_multiple is PRO_B_TRUE should contain ProArray of selected parameters. ProArrayFree should be used to free this array.. NULL passed if select_multiple is PRO_B_FALSE.
*/
)
Returns
The user selected the parameter(s).
The owner is invalid or not found.
The owner does not contain parameteers.
The user aborted the selection.
Invalid context for top_model argument.
One or more arguments was invalid.
Sample Code References
User Guide References
Est-ce que cela a été utile ?