复制到四角
图一
图二
请问用什么方法将A复制到四角,程序应如何编写? 这个不就是四分之一镜像? (defun c:tt ()
(setvar "CMDECHO" 0)
(if (and (setq pt1 (getpoint "\n方框一角: "))
(setq pt2 (getcorner pt1 "\n方框另一角: "))
(princ "\n选择物体: ")
(setq ss (ssget))) (progn
(setq pm (mapcar '(lambda (a b) (/ (+ a b) 2)) pt1 pt2)
p1 (polar pm 0 10)
p2 (polar pm (/ pi 2) 10))
(setq s1 (entlast) ss1 (ssadd))
(command "_.MIRROR" ss "" pm p1 "N")
(while (setq s1 (entnext s1)) (ssadd s1 ss1))
(command "_.MIRROR" ss ss1 "" pm p2 "N")
))
(setvar "CMDECHO" 1)
(princ)
)
ZZXXQQ 发表于 2013-5-22 22:55 static/image/common/back.gif
谢谢版主指教,问题已解决 学会自己写才是正道,光是索取程序。。。。。。。。。。。。 感谢分享, 有你更精彩 谢谢分享 . 应该再来个复制到对角lsp:lol
页:
[1]