在使用CAD中, 我们常常要把很多根头尾相连的ARC呀LINE呀连接成一根PLINE对象,我们都是常常用CAD的PEDIT来做,我以前只能在LISP中写出来, 今天把他用ARX把这个简易的动作写出来, 还望以后大家多多指导,我将用心学好ARX, 谢谢! // ----- BDYCommEE._EE command (do not rename) static void BDYCommEE_EE(void) { struct resbuf cmd, rb1,rb2 , *dxf; ads_name Ename; ads_point pt1 ; int m,n,k; //acedGetVar("osmode", & os); cmd.restype = RTREAL; cmd.resval.rreal = 0; acedSetVar("cmdecho", &cmd);//(SETVAR "CMDECHO" 0) if(acedEntSel("\n请选择要串接的线:",Ename,pt1) != RTNORM) {acutPrintf("\n没有选到对象,请再试一次。");} else { acedCommand(RTSTR ,"PEDIT",RTLB,RTENAME,Ename ,RTPOINT,pt1,RTLE, RTSTR, "" ,RTSTR,"J",RTSTR,"ALL",RTSTR,"",RTSTR,"",0); acutPrintf("\n选到对象,自动进行连接对象了。"); } // Add your code for command BDYCommEE._EE here } |