Category Parameters and relations, Object ProParameter

Function ProParameterCreate


DEPRECATED: Since Creo 3
SUPERSEDED BY: ProParameterWithUnitsCreate
Description
Note: This function is deprecated Use ProParameterWithUnitsCreate instead Adds the specified parameter to the database and initializes the handle.
Replacement in Object TOOLKIT: pfcParameterOwner::CreateParam
Synopsis
#include <ProParameter.h>
ProErrorProParameterCreate(
ProModelitem* owner
/* (In)
The owner (a model item or solid)
*/
ProName name
/* (In)
The name of the ProParameter
*/
ProParamvalue* proval
/* (In)
The initial data the ProParameter will hold
*/
ProParameter* param
/* (Out)
The handle to create and initialize
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully added the parameter.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_BAD_CONTEXTThe owner is nonexistent.
PRO_TK_E_FOUNDThe specified parameter already exists.
PRO_TK_GENERAL_ERRORThe function could not add the parameter to the database.
See Also
ProParameterWithUnitsCreate

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. Core: Parameters: Notification Functions
  5. Event-driven Programming: External Objects: External Object Parameters
  6. Event-driven Programming: External Objects: External Types and Identifiers for External Objects

Sample Code References:

  1. pt_examples ( TestParams.c )
  2. pt_geardesign ( GearDesign.c )
  3. pt_geardesign ( GearDesignUI.c )
  4. pt_userguide ( UgModelCheck.c )
  5. pt_wc_server ( PTWCServerAddInstance.c )