Category Parameters and relations, Object ProParameter

Function ProParameterValueWithUnitsGet


Description
Retrieves the value and units of the specified ProParameter.
Replacement in Object TOOLKIT: wfcWParameter::GetValueWithUnits
Synopsis
#include <ProParameter.h>
ProErrorProParameterValueWithUnitsGet(
ProParameter* param
/* (In)
The handle to the parameter to query
*/
ProParamvalue* proval
/* (Out)
The value currently held in the ProParameter The value is assumed to be in the units of the owner model, regardless of the units of this parameter.
*/
ProUnititem* units
/* (Out)
The units in which the value is expressed. If none found, an empty string will be returned.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information. Parameter could be unitless.
PRO_TK_E_NOT_FOUNDThe owner was not found.
PRO_TK_BAD_INPUTSOne or more arguments was invalid.
PRO_TK_GENERAL_ERRORThe parameter was not found, or the function could not perform the action.

Manual References:

  1. Pro/DEVELOP to Creo Parametric TOOLKIT Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: Parameters: Accessing Parameters
  3. Core: Parameters: Accessing Parameters
  4. Technical Summary of Changes for Creo 4.0 F000: Parameters
  5. Technical Summary of Changes for Creo 4.0 F000: Parameters
  6. Assembly: Data Sharing Features: Accessing Properties of Variant Features

Sample Code References:

  1. pt_userguide ( UgWeld.c )