本帖最后由 作者 于 2005-12-9 12:55:01 编辑
;在CAD中好像不太好实现,要是程序倒是简单得很。试试下面的
(defun c:double-line ()
(setvar "osmode" 0)
(setq L1 (getdist "\n第一条直线的长度:"))
(setq L2 (getdist "\n第二条直线的长度:"))
(setq ang (getreal "\n相交角度:")) (setq ang (* pi (/ ang 180)))
(setq p (getpoint "\n插入点:"))
(setq p1 (polar p 0 L1))
(setq p2 (polar p ang L2))
(command "_.pline" p1 "h" "0" "0" p p2 "")
(princ)
) |