API 文件集 > Features > Object ProUdfmdl > Function ProUdfmdlMdlnamesAlloc
Function ProUdfmdlMdlnamesAlloc
Description
Allocate and set a ProUdfMdlName structure which identifies a copied component model and its corresponding orignal. This strucutre is used for UDF placement. Note: In Creo 3 this function does not differ in behavior from superseded ProUdfmdlNamesAlloc. In particular, new_name can be only of ProName length. This function is reserved for future use.
Synopsis
#include <ProUdf.h>
ProUdfmdlMdlnamesAlloc
(
ProMdlName old_name
/* (In)
Name of component model being copied.
*/
ProMdlName new_name
/* (In)
Name of copied component model.
*/
ProUdfmdlNames* name_pair
/* (Out)
The structure that contains both names.
*/
)
Returns
The function succeeded.
One or more arguments was invalid.
Argument new_name is too long.
這是否有幫助?