Category Assembly, Object ProAsmcomp

Function ProAsmcompMdldataGet


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>
ProErrorProAsmcompMdldataGet(
ProAsmcomp* p_asm_comp_handle
/* (In)
The handle to the assembly component. Cannot be NULL.
*/
ProMdlType* r_mdl_type
/* (Out)
The model type. Can be NULL.
*/
ProMdlfileType* r_mdl_filetype
/* (Out)
The model filetype. Can be NULL.
*/
ProFamilyMdlName r_mdl_name
/* (Out)
The name of the model. Free this argument using ProWstringFree. Can be NULL.
*/
)
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