本帖最后由 作者 于 2005-6-11 10:59:43 编辑
不如这样吧- (defun c:tt()
- (setq el1(entsel)
- el2(entsel))
- (setq ens (list(cdr(assoc 0 (entget(car el1))))(cdr(assoc 0 (entget(car el2))))))
- (if (or(and (member "ARC" ens)(member "LWPOLYLINE" ens))
- (and (member "ARC" ens)(member "POLYLINE" ens)))
- (command ".pedit" "m" (car el1)(car el2) "" "y" "")
- )
- (command ".fillet" (osnap(cadr el1)"nea") (osnap(cadr el2)"nea") "")
- )
请注意cad版本,我测试用的是2004 |