查看单个帖子
旧 2009-04-16, 08:51 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】写了个调用scale命令的程序,但实现不了,求教

写了个调用scale命令的程序,但实现不了,求教
写了个调用scale命令的程序,但实现不了,求教
void asdknewscale()
{
// todo: implement the command
ads_point cp = {5.0, 5.0, 0.0};
ads_real rad = 2.0;
ads_name circent;
int rc = rtnorm;
struct resbuf *rbcirc;
acedcommand(rtstr, "scale",
rtpoint, cp,
rtreal, rad,
rtnone);
acedssget(null,null,null,null,circent);
acedinitget(rsg_nonull, null);
acedgetpoint(null, "\npick base point: ", cp);

acedinitget(rsg_nonull + rsg_nozero + rsg_noneg, null);
acedgetreal("\nscale factor: ", &rad);
if(rc != rtnorm)
{
acutprintf("\nerror entering: ");
return;
}
rbcirc = acutbuildlist(rtstr, "scale",
rtpoint, cp,
rtreal, rad,
rtnone);

acedcmd(rbcirc);

acutrelrb(rbcirc);


}
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)