cgmacby 发表于 2014-3-14 10:37
院长 能否 点完第一点 第二点 方向点后 标出标注后命令不退出,接着点下一点,它就连续标下去 跟已经标 ... - (defun c:tt ()
- (if (and (setq p1 (getpoint "\n第一点: "))
- (setq p2 (getpoint p1 "\n第二点: "))
- (setq p3 (getpoint p2 "\n方向点: "))
- )
- (progn
- (setq rad (angle p1 p2)
- r1 (+ rad (* pi 0.5))
- p4 (inters p1 p2 p3 (polar p3 r1 10) nil)
- p3 (polar p4 (angle p4 p3) 800)
- )
- (command "_dimaligned" "non" p1 "non" p2 "non" p3)
- (while (setq p4 (getpoint "\n下一点<退出>: "))
- (setq p4 (inters p1 p2 p4 (Polar p4 r1 100) nil))
- (command "_dim" "con" "non" p4 "")
- )
- (command "_dim" "e")
- )
- )
- (princ)
- )
|