;;;子程序,求选集是大外形坐标 (defun Min_Max() (vl-load-cmd) (vla-getboundingbox(vlax-ename->vla-object end) 'minp 'maxp) (setq minp (vlax-safearray->list minp) maxp (vlax-safearray->list maxp)) (setq minx (car minp) maxx (car maxp) miny (cadr minp) maxy (cadr maxp))) |