I wonder how to turn off the parameters of the ProAsmcompMdlMdlnameGet function.
You are using the ProAsmcompMdlMdlnameGet function. The document instructs you to release the variable whose name is printed to ProWstringFree(), but if you actually use it, an error will occur and you will be forced to exit.
Can you tell me what to do?
ProError status;
ProFeattype protype;
ProMdlfileType f_type;
ProFamilyMdlName f_name;
status = ProFeatureTypeGet(feat, &protype);
if (protype == PRO_FEAT_COMPONENT)
{
status = ProAsmcompMdlMdlnameGet(feat, &f_type, f_name);
if (f_type == PRO_MDLFILE_PART)
{
ProWstringFree(f_name);
}
}
return PRO_TK_NO_ERROR;
}

