高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】写了个调用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);
}
|