Category Assembly, Object ProAsm

Function ProAsmSkeletonMdlnameCreate


Description
Create a new skeleton model with specified name and adds it to the specified assemby. This function also initializes the model handle. Note: In Creo 3 this function does not support names longer than 31 characters. It will return PRO_TK_BAD_INPUTS for longer names. The support for ProMdlName will be added in a future release.
Replacement in Object TOOLKIT: pfcAssembly::AssembleSkeletonByCopy
Synopsis
#include <ProSkeleton.h>
ProErrorProAsmSkeletonMdlnameCreate(
ProAssembly assembly
/* (In)
Handle to the assembly.
*/
ProMdlName skel_name
/* (In)
Name of the skeleton model.
*/
ProMdl template_model
/* (In)
Handle to a part or skeleton to be used as a template. The template is copied into the created skeleton model. If the handler to the template is NULL, the new skeleton is created empty.
*/
ProMdl* p_skel
/* (Out)
Handle to the created skeleton model.
*/
)
Returns
PRO_TK_NO_ERRORSkeleton creation was successful.
PRO_TK_BAD_INPUTSInvalid assembly handle, skeleton name, or template handle.
PRO_TK_E_FOUNDSkeleton model already exists in the assembly.
PRO_TK_ABORTTemplate type is invalid (for example, is a manufacturing part), or has external external dependencies. Copying is aborted.
PRO_TK_GENERAL_ERRORSkeleton could not be created.
PRO_TK_NOT_VALIDRequired license is absent.
PRO_TK_UNSUPPORTEDModels which come from Multi-CAD approach are not supported as template model.
PRO_TK_LINE_TOO_LONGName length of skeleton model is more than 31 chars.

Manual References:

  1. Assembly: Top-down Design: Skeleton Model Functions
  2. Assembly: Top-down Design: Skeleton Model Functions
  3. Working with Multi-CAD Models Using Creo Unite: Functions that Support Multi-CAD Assemblies
  4. Working with Multi-CAD Models Using Creo Unite: Superseded Functions
  5. Working with Multi-CAD Models Using Creo Unite: Restrictions on Character Length for Multi-CAD Functions

Sample Code References:

  1. pt_examples ( TestSkelet.c )