发布于:2010-11-09 08:57:09
来自:建筑设计/CAD下载及教程
[复制转发]
任意调整光标角度,很好用!!!!
(defun c:gbjd()
(setq en (entsel "\n选取线,文字或图块<[Enter]输入角度>:"))
(if (/= en nil)
(progn
(setq endata (entget (car en)))
(setq entyp (cdr (assoc 0 endata)))
(cond ((= entyp "LINE") (line-ang))
((= entyp "TEXT") (text-ang))
((= entyp "MTEXT") (text-ang))
((= entyp "INSERT") (text-ang))
(t (2p-ang))
)
)
(2p-ang)
)
(setvar "snapang" ang)
)
(defun line-ang()
(setq pt10 (cdr (assoc 10 endata)))
(setq pt11 (cdr (assoc 11 endata)))
(setq ang (angle pt10 pt11))
)
(defun text-ang()
(setq ang (cdr (assoc 50 endata)))
)
(defun 2p-ang()
(setq ang (getangle "\n输入角度值:"))
)
(princ "\n-------------c:gbjd-----------")
(prin1)
全部回复(7 )
只看楼主 我来说两句回复 举报
对文字,线,都好用。
谢谢。
回复 举报