Category Creo Parametric TOOLKIT fundamentals, Object ProExtdata

Function ProExtdataSlotCreate


Description
Creates a data slot for the specified class.

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: pfcExternalDataClass::CreateSlot
Synopsis
#include <ProExtdata.h>
ProExtdataErrProExtdataSlotCreate(
ProExtdataClass* p_extclass
/* (In)
The class handle
*/
ProName slot_name
/* (In)
The name of the data slot to create. Pass NULL to automatically create a slot with a name related to the next available id.
*/
ProExtdataSlot* r_p_extslot
/* (Out)
The handle to the newly created data slot
*/
)
Returns
PROEXTDATA_TK_NO_ERRORThe function successfully created the data slot.
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 slot already exists in the specified class.
PROEXTDATA_TK_NAMES_TOO_LONGThe specified slot or class name exceeds the length PRO_NAME_SIZE.
PROEXTDATA_TK_MAX_SLOTS_IN_MODELModel already contains PRO_EXTDATA_MAX_SLOTS slots.

Manual References:

  1. Pro/DEVELOP to Creo 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 ( TestGeneRandom.c )
  3. pt_examples ( TestGeneRandom.c )
  4. pt_examples ( TestGenedata.c )
  5. pt_examples ( TestGenedata.c )
  6. pt_userguide ( UgExtAnalysisSurfcsys.c )