图纸简介: 不错的施工图 附件名:20083311206935853161.zip 文件大小:869K (升级VIP 如何赚取土木币)
图纸简介:
不错的施工图
附件名:20083311206935853161.zip
文件大小:869K
(升级VIP 如何赚取土木币)
2楼
以下代码,对直线有效,仅供参考
(defun c:YYZC1 (/ ssg py n lst chpt)
(defun chpt (pt y)
(cons (car pt)
(polar (list (cadr pt) y) (* 0.25 PI) (- (caddr pt) y))
)
)
(setq ssg (ssget (list (cons 0 "LINE")))
py (cadr (getpoint "\nBase Point:"))
n -1
)
(while (< (setq n (1+ n)) (sslength ssg))
(setq lst (entget (ssname ssg n)))
(setq lst (subst (chpt (assoc 10 lst) py) (assoc 10 lst) lst))
(setq lst (subst (chpt (assoc 11 lst) py) (assoc 11 lst) lst))
(entmod lst)
)
(princ)
)
(princ "\n\tType YYZC1 to start!!")
(princ)
回复
3楼
:handshake :handshake
回复