马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
 - (defun c:cirw()
- (setvar "cmdecho" 0)
- (setq ww (getdist "\n宽度 <1>: "))
- (if (= ww nil) (setq ww 1.0))
- (setq ss (ssget))
- (setq s 0)
- (repeat (sslength ss)
- (setq ssn (ssname ss s))
- (setq entyp (cdr (assoc 0 (entget ssn))))
- (cond ((= entyp "CIRCLE") (progn
- (setq rr (cdr (assoc 40 (entget ssn))))
- (setq cen (cdr (assoc 10 (entget ssn))))
- (command "donut" (* 2 (- rr (/ ww 2))) (* 2 (+ rr (/ ww 2))) cen "")
- (command "erase" ssn "")
- ))
- ((= entyp "LINE") (command "pedit" ssn "y" "w" ww ""))
- ((= entyp "ARC") (command "pedit" ssn "y" "w" ww ""))
- ((= entyp "LWPOLYLINE") (command "pedit" ssn "w" ww ""))
- ((= entyp "POLYLINE") (command "pedit" ssn "w" ww ""))
- )
- (setq s (1+ s))
- )
- )
|