- (defun c:tt ()
- (while (and (setq s1 (entsel "选圆弧打断点: "))
- (setq ent (entget(car s1)))
- (= (cdr(assoc 0 ent)) "ARC"))
- (setq r (cdr(assoc 40 ent)))
- (setq pc (cdr(assoc 10 ent)))
- (setq sa (cdr(assoc 50 ent)))
- (setq ea (cdr(assoc 51 ent)))
- (setq ps (polar pc sa r))
- (setq pe (polar pc ea r))
- (setq pb (osnap (cadr s1) "NEA"))
- (setq ba (angle pc pb))
- (entmod (subst (cons 51 ba) (assoc 51 ent) ent))
- (entmake (subst (cons 50 ba) (assoc 50 ent) (cdr ent)))
- )
- (princ)
- )
|