|
(defun GtUpT (x)
4 e" N4 U( ^+ @- @; g (setq pt (cdr (assoc 10 (entget x)))
) `3 Z3 Y: f2 i+ w& W pt (mapcar '+ pt '(0 200))
- n* s3 @# Q$ _. H6 J# E/ a )
7 F4 k- n. g! P& R (ssget "f" (list pt (mapcar '+ pt '(400 0))) TxtEq) ; '(600 0) n0 E/ s6 h- E
)
: C0 d5 m& V, a4 F+ {, \: X* x7 `, m! f0 M3 ^% `
;;; for Test only3 ~) w8 ?! H! z6 d0 m! F. ]
& G s3 Y4 d1 ^3 }, D5 z3 I' }8 U
(defun C:Test ()/ _7 z9 ?/ W0 X. u3 a1 I
;; 设定文字滤取条件
! k* f! r( E4 g. g" J4 E" |1 M (setq TxtEq
8 u& s/ \; F; W8 g3 F '(
- ~+ z" D: }# O0 ^6 Z" i- j* s) ` (0 . "TEXT")
* `4 A: U! M2 M5 B+ o/ N (8 . "451")% F) C( U D3 V) g
(62 . 13)
6 [- r f( w/ k* _) [1 ^7 H$ h (50 . 0.0)* [7 }" }% o) C$ N$ N/ M
(41 . 0.8)
2 Q4 ]: i; b) b8 I4 j) f8 o5 P% K (51 . 0.0)2 _/ l# R. R! c: p2 `! {
(7 . "Standard")
1 Z* X* M: V: P P (71 . 0)
' R, j3 q3 }& r1 ?+ f" j+ [ (72 . 0)
( n6 x8 D2 X+ e) r% ] z (73 . 0)
& ?" U( s! v4 D )9 U) ~1 n6 X% N
)$ i3 J( Q, D- E& r( K. \. _
# m- @, p# }( }/ f (command "Zoom" "e")
# y. K [. y% C' d # i6 t/ z3 b0 J2 b& f
(setq ss (ssget "x" TxtEq)+ e4 Z5 y. {0 u+ n& R. p4 `
ssa (ssadd)# D$ q% [1 @9 }) Q, B
;; ssb (ssadd)1 Q. M+ i9 l' R$ _
idx 0' T/ w% Q9 Y2 V' k- a' y
)3 p0 ]' J0 N+ X8 ]
6 Q9 Q* Y! M& i4 e `& L (while (setq ee (ssname ss idx))+ C, _8 T: {9 _! r3 P5 Q0 L
(if (gtUpT ee)# W0 k, A/ q# {: n6 t9 X8 Y4 v
(ssadd ee ssa). i* S7 @/ Q4 _5 @2 x% l1 L
;; (ssadd ee ssb)
6 X* O, G9 d P3 L1 {! i2 n )! a* B4 ]/ v) `2 L- r0 H
(setq idx (1+ idx))0 @) Z0 w" R8 B5 E3 t
)& J- }0 [$ J5 M
(command "Erase" ssa "")
8 W& Y4 E$ o% ` (princ)
; J Q! @* R P% Z+ k: }) |
|