马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
这是一个命令按钮的调用函数,目的是实现所选零件沿x轴旋转20度,怎么不对阿,总是出现fail的消息,郁闷ing
/*================================================================*\
FUNCTION: viewrotate() 菜单按钮1的动作函数
\*================================================================*/
int viewrotate()
{
 roSelection *sel;
int n_sel;
 roError err;
 roFileName MsgFile;
 roStringToWstring(MsgFile, "DisplayMessage3.txt");
err = ProSelect ("part", 1, NULL, NULL, NULL, NULL, [$sel, &n_sel)]
if (err != PRO_TK_NO_ERROR || n_sel < 1)
ProMessageDisplay(MsgFile, "select again");
 roViewRotate(sel[0], NULL, PRO_X_ROTATION, 20);
 roWindowRepaint(PRO_VALUE_UNUSED);
 roMessageDisplay(MsgFile, "selected part rotate");
return true;
} |