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:
Synopsis
#include <ProExtdata.h>
ProExtdataSlotCreate
(
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
The function successfully created the data slot.
The function failed.
The specified model or class name is invalid.
The specified slot already exists in the specified class.
The specified slot or class name exceeds the length PRO_NAME_SIZE.
Model already contains PRO_EXTDATA_MAX_SLOTS slots.
Sample Code References
User Guide References
도움이 되셨나요?