tag_t tWorkPart=UF_ASSEM_ask_work_part();
tag_t tWorkOcc=UF_ASSEM_ask_work_occurrence();
UF_ASSEM_ask_parent_component(tFace,&tPartOcc);
if (tWorkOcc != tPartOcc)
{
tFacePro=UF_ASSEM_ask_prototype_of_occ(tFace);
UF_SO_create_xform_assy_ctxt(tWorkPart,tPartOcc,tWorkOcc,&tXform);
UF_WAVE_create_linked_face(tFacePro,tXform,tWorkPart,FALSE,&tLinkedFace);
UF_MODL_create_list(&face_list);
UF_MODL_ask_feat_faces(tLinkedFace,&face_list);
UF_MODL_ask_list_count(face_list,&nFaceCount);
if (nFaceCount != 0)
{
UF_MODL_ask_list_item(face_list,0,&tLinkedFace);
UF_MODL_delete_list(&face_list);
return tLinkedFace;
}
}
UF_MODL_delete_list(&face_list); |