|
(defun cp()" d" g) n7 ^+ m. F- ^
(setq bj (getreal "\\n 请输入圆半径:"))
5 H k; H6 | v- ?& @(setvar "osmode" 0)! S! d6 j% w1 u
(setq ss (ssget \'((0 . "point"))))
z' N7 [3 G) ?3 x. T: M8 z, t(setq len (sslength ss))
, _" ^: g" Z, b$ t8 S+ ~2 G(setq n 0); r- G( E2 L" {) v- F+ S
(command "undo" "begin")
* ?5 ~- y9 p" [ K. ^8 P u0 [$ O(repeat len+ ^8 x0 k! x2 g J+ b! ?5 O
(setq ent (ssname ss n))
: w! X& g' Q# \7 p O; q(setq yuanxin (trans (cdr (assoc 10 (entget ent))) 0 1)) 2 v8 j9 i: v: m( ~% M
(command "circle" yuanxin bj)7 f3 C D% x- D) M/ K$ r
(setq n (+ 1 n))0 \% M- T4 d! k j9 k4 f+ N
)
/ r9 s" ]: q2 y( k. b(command "undo" "end")是这样的吗?如何应用? |
|