Category Creo Parametric TOOLKIT fundamentals, Object ProExtdata

Function ProExtdataClassRegister


Description
Registers a class for the specified model.

Note: Although class and slot names are individually limited to a length of PRO_NAME_SIZE, they must also have a combined length shorter than PRO_NAME_SIZE. Attempting to use combined names longer than PRO_NAME_SIZE results in an error.

Replacement in Object TOOLKIT: pfcExternalDataAccess::CreateClass
Synopsis
#include <ProExtdata.h>
ProExtdataErrProExtdataClassRegister(
ProMdl p_model
/* (In)
The model handle
*/
ProName class_name
/* (In)
The name of the class to register
*/
ProExtdataClass* r_p_extclass
/* (Out)
The handle to the newly registered class
*/
)
Returns
PROEXTDATA_TK_NO_ERRORThe function successfully registered the class.
PROEXTDATA_TK_ERRORThe function failed.
PROEXTDATA_TK_INVALID_OBJ_OR_CLASSThe specified model or class name is invalid.
PROEXTDATA_TK_CLASS_OR_SLOT_EXISTSThe specified class name already exists.
PROEXTDATA_TK_NAMES_TOO_LONGThe specified class name exceeds the length PRO_NAME_SIZE.

Manual References:

  1. Pro/DEVELOP to Creo Parametric TOOLKIT Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: External Data: Storing External Data
  3. Core: External Data: Storing External Data

Sample Code References:

  1. pt_examples ( TestAnalysis.c )
  2. pt_examples ( TestGenedata.c )
  3. pt_examples ( TestGenedata.c )
  4. pt_userguide ( UgExtAnalysisSurfcsys.c )