 - ;; 在两相交直线的角平分线上画圆
- ;; 需要e派工具箱的支持
- (defun c:tt ()
- (if (and (setq e1 (entsel "\n选择第一条相交线:"))
- (setq e2 (entsel "\n选择第二条相交线:"))
- )
- (setq s1 (car e1)
- p1 (osnap (cadr e1) "nea")
- s2 (car e2)
- p2 (osnap (cadr e2) "nea")
- p0 (car (xyp-get-Inters s1 s2 0))
- p3 (xyp-get-MidPoint
- (polar p0 (angle p0 p1) 50)
- (polar p0 (angle p0 p2) 50)
- )
- p3 (polar p0 (angle p0 p3) 50)
- s4 (xyp-circle p3 10)
- )
- )
- (princ)
- )
|