- ;; (abc (setq s1(car(entsel"\n选择圆弧: "))))
- (defun abc (s1 / pc p1 p2 p1a p2a p3)
- "圆弧两端点相交切线"
- (setq pc (cdr (assoc 10 (entget s1)))
- p1 (vlax-curve-getStartPoint s1)
- p2 (vlax-curve-getEndPoint s1)
- )
- (if (setq p1a (polar p1 (+ (angle pc p1) (* pi 0.5)) 10)
- p2a (polar p2 (+ (angle pc p2) (* pi 0.5)) 10)
- p3 (inters p1 p1a p2 p2a nil)
- )
- (command "line" "non" p1 "non" p3 "non" p2 "")
- )
- )
|