- ;;;已知两点。与切线。画圆
- ;;;连接两点划一直线,从直线中点划一与直线垂直的直线,
- ;;;这条直线与圆弧切线的交点就是圆弧与那条直线的切点,
- ;;;然后呢三点划弧就可以了
- (defun c:tt()
- (vl-load-com)
- (setq pta (getpoint"点取第一点"))
- (setq ptb(getpoint"点取第二点"))
- (setq s0(car(entsel"选取相切的直线")))
- (setq mid(mapcar '(lambda (z zz)(/ (+ z zz)2) )
- pta ptb )
- ) ;中点
-
- (setq near_pt<(vlax-curve-getClosestPointTo s0 mid T))
- (command "circle" "3p" pta ptb near_pt<"")
-
- )
|