![]() |
【转帖】写了个调用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); } |
所有的时间均为北京时间。 现在的时间是 04:14 AM. |