API-Dokumentation > Assembly > Object ProAsm > Function ProAsmSkeletonMdlnameCreate
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:
Synopsis
#include <ProSkeleton.h>
ProAsmSkeletonMdlnameCreate
(
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
Skeleton creation was successful.
Model is in read-only state.
Invalid assembly handle, skeleton name, or template handle.
Skeleton model already exists in the assembly.
Template type is invalid (for example, is a manufacturing part), or has external external dependencies. Copying is aborted.
Skeleton could not be created.
Required license is absent.
Models which come from Multi-CAD approach are not supported as template model.
Name length of skeleton model is more than 31 chars.
Sample Code References
User Guide References
War dies hilfreich?