iCAx开思工具箱
标题:
【求助】高手进来看看,关于装配的
[打印本页]
作者:
ptjmy
时间:
2004-5-17 10:00
标题:
【求助】高手进来看看,关于装配的
下面是我写的配合条件:
tag_t *to_part_occ;
UF_ASSEM_where_is_part_used(*from_part_occ,[$to_part_occ)]
UF_ASSEM_mating_condition_t ftf;
UF_ASSEM_init_mc([$ftf)]
ftf.mated_object=from_part_ins;
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;
UF_ASSEM_mc_status_t status;
UF_ASSEM_mc_structure_state_t struct_status;
UF_ASSEM_dof_t dof;
int ret=UF_ASSEM_solve_mc([$ftf,&status,&dof,transform)]
status一直返回UF_ASSEM_mc_not_solved ,想不通,不知道错在哪里?高人指点一下
作者:
ptjmy
时间:
2004-5-17 10:08
因为我导入的是part文件,不是object occurrence,书上的许多函数我用不上,我调试看过这些参数都有数值
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3