Parameter Objects
This section describes the Creo TOOLKIT functions that give access to parameters and geometric tolerances.
The object ProParameter describes the contents and ownership of a parameter. ProParameter is a DHandle whose declaration is as follows:
typedef struct proparameter
{
ProType type;
ProName id;
ProParamowner owner;
} ProParameter;
typedef struct proparamowner
{
ProParamfrom type;
union
{
ProModelitem item;
ProMdl model;
} who;
} ProParamowner;
typedef enum proparamfrom
{
PRM_MODEL,
PRM_ITEM
} ProParamfrom;
A structure called ProParamvalue is used to represent the value of a parameter. Its declaration is as follows:
typedef struct Pro_Param_Value
{
ProParamvalueType type;
ProParamvalueValue value;
} ProParamvalue;
typedef enum param_value_types
{
PRO_PARAM_DOUBLE,
PRO_PARAM_STRING,
PRO_PARAM_INTEGER,
PRO_PARAM_BOOLEAN,
PRO_PARAM_NOTE_ID,
PRO_PARAM_VOID
} ProParamvalueType;
typedef union param_value_values
{
double d_val;
int i_val;
short l_val;
ProLine s_val;
} ProParamvalueValue;