- (defun c:aa ()
- (setvar "osmode" 167)
- (while (and (setq p0 (getpoint "\n基点<退出>: "))
- (setq p1 (getpoint p0 "\n基点<退出>: "))
- (setq p2 (mapcar '(lambda (x y) (* (+ x y) 0.5)) p0 p1))
- (setq p3 (getpoint p2 "\n垂点<退出>: "))
- )
- (command "line" p2 p3 "")
- )
- (princ)
- )
|