发布网友 发布时间:2022-04-26 08:27
共1个回答
热心网友 时间:2022-06-25 19:49
(defun c:cc() (vl-load-com) (command "_undo" "be") (if (setq ent (car (entsel "\nobj:"))) (progn (setq obj (vlax-ename->vla-object ent) pt0 (vlax-get obj "Centroid") ) (repeat 100 (setq pt1 (mapcar '+ pt0 '(0 0 1))) (command "_move" ent "" pt0 pt1) (setq pt0 pt1) (setq j 0) (repeat 9000 (setq j 1)) )