iCAx开思工具箱
标题:
【求助】
[打印本页]
作者:
cg0606
时间:
2004-8-10 22:12
标题:
【求助】
请问有谁知道如何使用UF_ASSEM_apply_mc_data,其中的UF_ASSEM_constraint_s中各个成员的值如何设定?多谢
作者:
tari
时间:
2004-8-11 09:25
你自己看看文档里具体怎么定义的,下面的代码帮你理解一下
UF_ASSEM_mating_condition_t ftf;
UF_ASSEM_init_mc([$ftf)]
ftf.mated_object=instance;
ftf.part_occurrence=to_part_occ;
ftf.name=NULL;
ftf.user_name=FALSE;
ftf.constraints[0].from_status=UF_ASSEM_ok;
ftf.constraints[0].to_status=UF_ASSEM_ok;
ftf.constraints[0].mate_type=UF_ASSEM_v16_mate;
ftf.constraints[0].from_type=UF_ASSEM_planar_face;
ftf.constraints[0].to_type=UF_ASSEM_planar_face;
ftf.constraints[0].from=first_plan;
ftf.constraints[0].from_part_occ=from_part_occ;
ftf.constraints[0].to=third_plan;
ftf.constraints[0].to_part_occ=to_part_occ;
ftf.constraints[0].offset=NULL_TAG;
ftf.constraints[0].name="face to face";
ftf.constraints[0].user_name=TRUE;
ftf.constraints[1].from_status=UF_ASSEM_ok;
ftf.constraints[1].to_status=UF_ASSEM_ok;
ftf.constraints[1].mate_type=UF_ASSEM_v16_mate;
ftf.constraints[1].from_type=UF_ASSEM_cylindrical_face;
ftf.constraints[1].to_type=UF_ASSEM_cylindrical_face;
ftf.constraints[1].from=second_plan;
ftf.constraints[1].from_part_occ=from_part_occ;
ftf.constraints[1].to=fourth_plan;
ftf.constraints[1].to_part_occ=to_part_occ;
ftf.constraints[1].offset=NULL_TAG;
ftf.constraints[1].name="face to face";
ftf.constraints[1].user_name=TRUE;
ftf.num_constraints=2;
ftf.suppressed=FALSE;
作者:
cg0606
时间:
2004-8-11 10:18
多谢多谢,但现在还是有些问题:
如果我不加“UF_ASSEM_init_mc([$ftf)] ”这句,程序可以执行,但mating condition没有创建,显示“FROM->Unknown component",
如果加上“UF_ASSEM_init_mc([$ftf)] ”,则程序无法执行,提示为”Failed to load image, see log file for details",我看了log file,提示为“Please check that all dependent libraries used by the image can be found by the loader and have all their symbols resolved”,
请问使用“UF_ASSEM_init_mc([$ftf)] ”这个API需要什么库文件吗,还是有什么其他问题,多谢。
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3