Category Assembly, Object ProAsmcomp

Function ProAsmcompMdlMdlnameGet


Description
Retrieves the name and type of the model, given the handle to the assembly component. Note: In Creo 3 this function does not support names longer than 80 characters. It will return PRO_TK_BAD_INPUTS for longer names. The support for ProFamilyMdlName will be added in a future release.
Synopsis
#include <ProAsmcomp.h>
ProErrorProAsmcompMdlMdlnameGet(
ProAsmcomp* p_asm_comp_handle
/* (In)
The handle to the assembly component
*/
ProMdlfileType* r_mdl_type
/* (Out)
The model type
*/
ProFamilyMdlName r_mdl_name
/* (Out)
The name of the model. Free this argument using ProWstringFree.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_BAD_INPUTSThe input argument is invalid.

Manual References:

  1. Assembly: Basic Assembly Access: Properties Related to Component Purpose
  2. Assembly: Basic Assembly Access: Properties Related to Component Purpose
  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 ( TestAsm.c )
  2. pt_examples ( TestMechanism.c )
  3. pt_examples ( UtilVisit.c )
  4. pt_userguide ( UgMfgMillSeqCreate.c )