Category Assembly, Object ProAsmcomp

Function ProAsmcompFillFromMdl


Description
Copy specified template into a model of the specified component.
Replacement in Object TOOLKIT: pfcComponentFeat::CopyTemplateContents
Synopsis
#include <ProAsmcomp.h>
ProErrorProAsmcompFillFromMdl(
ProAsmcomp* comp_handle
/* (In)
Handle to the component.
*/
ProMdl template_model
/* (In)
Handle to the model to be used as the copy template.
*/
)
Returns
PRO_TK_NO_ERRORThe action has been successfully performed.
PRO_TK_BAD_INPUTSThe component handle is invalid; or the template handle is invalid; or the template type does not correspond to that of the component model.
PRO_TK_INVALID_TYPEThe template type does not correspond to the component type.
PRO_TK_E_FOUNDFeatures exist in a model of the component; copying the template to this model is not allowed.
PRO_TK_ABORTThe model can not be used as a template or has external dependencies. Copy is aborted.
PRO_TK_GENERAL_ERRORComponent creation failed.
PRO_TK_NOT_VALIDRequired license not found.
PRO_TK_UNSUPPORTEDUnsupported model. For instance, embedded models.

Manual References:

  1. Assembly: Basic Assembly Access: Modifying Component Properties
  2. Assembly: Basic Assembly Access: Modifying Component Properties
  3. Assembly: Top-down Design: Assembly Component Functions

Sample Code References:

  1. pt_examples ( TestSkelet.c )