|
(defun GtUpT (x)
0 ~. V5 k Y8 X5 h- Q (setq pt (cdr (assoc 10 (entget x)))
# {; i/ z% W# A" S2 C% O pt (mapcar '+ pt '(0 200))6 |/ v. H3 j" N/ {
)
9 o. U" P: P! ^* g( {7 J/ H (ssget "f" (list pt (mapcar '+ pt '(400 0))) TxtEq) ; '(600 0)
9 T' i! J/ h v)
6 o% {7 } ^1 U1 v
_3 D1 |$ {' G+ B;;; for Test only) j9 v3 c( [, U2 t4 e9 }
+ }! ]/ g: q5 X2 L(defun C:Test ()" z( w, S- g4 T) ?: R- t
;; 设定文字滤取条件
2 |* P1 M% W4 I' r: {( Q (setq TxtEq
5 N0 G- y) X+ X4 H0 a '(
/ c9 S( C% I2 f7 u (0 . "TEXT")
1 E( C- n% l+ n2 w; N (8 . "451")
# ~( C g8 K' v) V6 Q (62 . 13)% V/ p4 l A. |# Y
(50 . 0.0)
) m& d, v& N& H e( j: d (41 . 0.8)# o( A: |. A% b/ g l2 ~$ W
(51 . 0.0)
+ ` ?* L& I5 C0 G (7 . "Standard")
! I9 }% F1 l4 I8 O# ] (71 . 0)& G/ _: e$ e9 I0 q. X* R. G
(72 . 0)9 m9 g Q( j9 @, A
(73 . 0)
' |* [% C5 L3 B. y" K, X" P. {8 H4 O )
3 Y$ x' f& Y6 F" G, [+ W2 p )/ K) C$ b: I G2 O4 B1 M
& r7 Y! d7 \% W( f' o" U (command "Zoom" "e")
5 d) h5 q- s" G- J2 I9 A
# k; C' g, y, B& w (setq ss (ssget "x" TxtEq)# d5 r' B5 _: b4 G# i" w
ssa (ssadd)
; e( o% ^0 s$ [4 m2 q ;; ssb (ssadd)
, Z, _& l5 y- a0 b5 d. D idx 09 O& J. V; C! ~( J2 C
)
1 Q5 s0 f! g1 y& x% v' u6 L# [6 B+ l1 f
(while (setq ee (ssname ss idx))
) g- F2 G4 @" x1 d$ \ p% o (if (gtUpT ee)
" [6 q) ^9 g: G (ssadd ee ssa); C M2 ]5 t& b% u# R
;; (ssadd ee ssb)( _) {9 C1 B6 i5 r+ Q. ~
)
. C& @( b) ^0 M5 i (setq idx (1+ idx))& [1 t. a( k" O- t& x H
)
9 F" e3 A1 s, \. m5 f (command "Erase" ssa "")* O: y6 u/ @& ]1 F }( p6 [8 \
(princ)/ e/ J& V9 I$ O4 e; a* A( U. {
) |
|