|
马上注册,结交更多同行朋友,交流,分享,学习。
您需要 登录 才可以下载或查看,没有帐号?注册
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);
ProWindowRepaint(PRO_VALUE_UNUSED);
ProMessageDisplay(MsgFile, "selected part rotate");
return true;
} |
|