Category Parameters and relations, Object ProParameter

Function ProParameterValueSet


DEPRECATED: Since Creo 3
SUPERSEDED BY: ProParameterValueWithUnitsSet
Description
Note: This function is deprecated. Use ProParameterValueWithUnitsSet(). Sets the value of an existing ProParameter.
Replacement in Object TOOLKIT: pfcBaseParameter::Value
Synopsis
#include <ProParameter.h>
ProErrorProParameterValueSet(
ProParameter* param
/* (In)
The handle of the parameter to set
*/
ProParamvalue* proval
/* (In)
The new value. The value is assumed to be in the units of the owner model, regardless of the units of this parameter.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully set the value.
PRO_TK_E_NOT_FOUNDThe owner was not found.
PRO_TK_GENERAL_ERRORThe parameter was not found, or the function could not perform the action.

Manual References:

  1. Core: Parameters: Notification Functions
  2. Technical Summary of Changes for Creo 4.0 F000: Parameters

Sample Code References:

  1. pt_examples ( TestParams.c )
  2. pt_geardesign ( GearDesign.c )
  3. pt_userguide ( UgModelCheck.c )