iCAx开思工具箱
标题:
高手指点:装配中ftf.constraints[0] “0”该如何理解
[打印本页]
作者:
miraculous
时间:
2005-4-23 00:24
标题:
高手指点:装配中ftf.constraints[0] “0”该如何理解
A和B之间已经存在对齐Align的约束关系,想再添加一种相对UF_ASSEM_v16_mate的约束关系
如下列代码中:
UF_ASSEM_mating_condition_t ftf;
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 = UF_ASSEM_ask_prototype_of_occ(FirstPlane);
ftf.constraints[0].from_part_occ = FromPartOcc;
ftf.constraints[0].to = UF_ASSEM_ask_prototype_of_occ(SecondPlane);
ftf.constraints[0].to_part_occ = ToPartOcc;
ftf.constraints[0].offset = NULL_TAG;
ftf.constraints[0].name = "face to face";
ftf.constraints[0].user_name = TRUE;
执行上述代码后,A和B形成了UF_ASSEM_v16_mate的约束,但却把原有的A和B之间对齐Align的约束关系给覆盖掉了,而我需要的是同时存在2种约束。
试着把ftf.constraints[0] “0”理解为第1种约束,而ftf.constraints[1]为第2种约束,顺着这种想法我把代码中所有的ftf.constraints[0]的”0“改为“1",单步调试时却发现from_status 为UF_ASSEM_not_loaded的值,请问我的这种理解哪里出错了?
另外,如果在已经存在一种约束的情况下,要添加其它约束,即实现多种约束同时存在,有什么好的方法?
Thanks
作者:
xpl2005
时间:
2007-1-16 21:15
可否留个信箱或QQ,我现在也在做装配可以互相学习一下
QQ:286345063
email:
xpl2005@163.com
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3