- (defun sk_ffr(en sk_radius)
- (setvar "FILLETRAD" sk_radius)
- (command "_.FILLET" "P" en)
- )
- (defun c:ff(/ sk_radius1 ss en)
- (setq sk_radius (getvar "FILLETRAD"))
- (if (setq sk_radius1
- (getdist (strcat "\n请指定圆角半径<" (rtos sk_radius) ">:"))
- )
- (setq sk_radius sk_radius1)
- )
- (if (setq ss(ssget '((0 . "*polyline"))))
- (progn
- (setq sk_echo1 (getvar "cmdecho"))
- (setvar "cmdecho" 0)
- (while (setq en(ssname ss 0))
- (sk_ffr en sk_radius)
- (setq ss (ssdel en ss))
- )
- (if sk_echo1 (setvar "cmdecho" sk_echo1))
- )
- )
- (princ)
- )
|