iCAx开思工具箱
标题:
Pro/Toolkit中使用ProUtilCollectAsmcomp
[打印本页]
作者:
mingseas1982
时间:
2005-9-8 13:52
标题:
Pro/Toolkit中使用ProUtilCollectAsmcomp
代码如下:
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)
请教各位是什么原因产生的错误,怎么解决,谢谢!!!
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3