759| 2
|
请各位大大改一下程序,实现批量循环执行 |
3明经币
最佳答案(defun c:dq (/ en i mid1 mid2 obj1 obj2 ss1 ss2 ss3 x x1 y y1)
(setvar "OSMODE" 0)
(princ "\n选择要移动的对象")
(while (setq ss1 (ssget))
(setq obj1 (ss::boundingbox ss1))
(setq x (/ (+ (caar obj1) (caadr obj1)) 2))
(setq y (/ (+ (cadar obj1) (cadadr obj1)) 2))
(setq mid1 (list x y 0.0))
(princ "\n选择对齐的对象")
(setq ss2 (ssget))
(setq i -1)
(while (setq en (ssname ...
| ||
发表于 2024-5-5 18:43:39
|
显示全部楼层
| ||