我们只需要一些规则就可以做一些事情,而不必不断更改代码。
哪些层要关闭,而不是包含在镜像中。
用于设置镜像线“max Y”“min Y”的对象只是点吗?见帖子#4
它可以通过脚本自动生成任意多个dwg。
- open dwg1 (load "mymirror") close Y
- open dwg2 (load "mymirror") close Y
- open dwg3 (load "mymirror") close Y
- (setq ss (ssget "x" '((0 . "point")(410 . "model"))))
- (setq ymin 1000000.0)
- (setq ymax 0.0)
- (repeat (setq x (sslength ss))
- (setq pt (assoc 10 (entget (ssname ss (setq x (- x 1))))))
- (if (< (caddr pt) ymin)
- (setq ymin (caddr pt))
- )
- (if (> (caddr pt) ymax)
- (setq ymax (caddr pt))
- )
- )
- (alert (strcat "Ymax " (rtos ymax 2 3) "Ymin " (rtos ymin 2 3)))
- ; draw line and mirror ran out of time
|