程序是要实现component对于指定面的镜像
1.通过
UF_UI_ask_sel_object_list ( sel_data.value.selection, [$count, &objects2 )] UF_OBJ_ask_type_and_subtype(objects2, [$type,&subtype)]
if(type == UF_component_type)
{
comp_tag2 = objects2;
}
得到要移动的component的tag
2.通过
FTN(uf5946)([$plane_id,matrix,&ir)]得到镜像矩阵,其中plane_id我用程序得到的面的itag
3.通过
int n=1, copyFlag=1, layer=0, curveFlag=2;
tag_t tag_t;
FTN(uf5947)(matrix,[$comp_tag2,&n,©Flag,&layer,&curveFlag,objects3,NULL,&reps)]来完成镜像
测得ir和reps的返回值都是0,证明镜像成功了
但是,实际上在ug中component没有发生任何位置的变化阿
呜呜,牛人请指导啊 |