|
马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
代码如下:
status=ProMdlCurrentGet((ProMdl*)[$assembly)]
status=ProUtilCollectAsmcomp(assembly,[$asmcomps)]
status=ProArraySizeGet((ProArray)asmcomps,[$n)]
for(i=0;i<n;i++)
{
status=ProAsmcompMdlGet(asmcomps+i,[$model)]
status=ProAsmcompMdlNameGet(asmcomps+i,[$mdl_type,w_name)]
ProWstringToString(model_name,w_name);
if(strnicmp(model_name,"0A1P1",5)==0)
{
status=ProSolidInit(w_name, (ProType)mdl_type, [$solid)]
status=ProSolidMassPropertyGet(solid,NULL,[$mass_prop)]
}
想得装配件中名称前五位为0A1P1的零件的质量属性值,调试时没有问题,但生成时出现错误:
DlgExtractmass.obj : error LNK2001: unresolved external symbol "enum ProErrors __cdecl ProUtilCollectAsmcomp(struct sld_part *,struct pro_model_item * *)" (?ProUtilCollectAsmcomp@@YA?AW4ProErrors@@PAUsld_part@@PAPAUpro_model_item@@@Z)
请教各位是什么原因产生的错误,怎么解决 |
|