马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
主组件里面取总骨架的坐标系或者基准面 和 子组件的子骨架坐标系或基准面来对齐装配,但是装配上都是不完全约束,不知道问题出在哪?
status = ProAsmcomppathInit (asm_model, c_id_table, 0, &comp_path);
status = ProSelectionAlloc (&comp_path, &asm_datum, &asm_sel);
status = ProSelectionAlloc (NULL, &comp_datum, &comp_sel);
status = ProAsmcompconstraintAlloc (&constraint);
status = ProAsmcompconstraintTypeSet (constraint, PRO_ASM_ALIGN);(PRO_ASM_ALIGN若是坐标系的话需要改动,其他都一样吧?)
status = ProAsmcompconstraintAsmreferenceSet (constraint, asm_sel, PRO_DATUM_SIDE_YELLOW);
status = ProAsmcompconstraintCompreferenceSet (constraint, comp_sel, PRO_DATUM_SIDE_YELLOW);
status = ProArrayObjectAdd ((ProArray*)&constraints, -1, 1, &constraint);
不是大概用这些函数来放置约束么?请高手指教! |