|
(defun GtUpT (x)
$ D+ X9 Y5 D. Q1 i4 P# S( X (setq pt (cdr (assoc 10 (entget x)))
: k! J1 ?" Y( a pt (mapcar '+ pt '(0 200))
, t5 K Y Q+ F& B )4 u: C1 n& R: ^2 k3 B) I& g
(ssget "f" (list pt (mapcar '+ pt '(400 0))) TxtEq) ; '(600 0)
9 J, z: ]0 S3 E ]3 K ~8 r ^); b" U5 D8 |; B9 k H7 o* d$ `
7 |( `1 p" C1 X# c! t' \; c: u
;;; for Test only
( J, l" A) |" \
% @, z; _5 r' l& p) O: H4 Y* n. v(defun C:Test ()
; g* Q1 O! r5 _1 a8 _! S ;; 设定文字滤取条件
( [5 n3 I; [0 B! U (setq TxtEq F# A+ P0 @6 D% t6 P0 {- y% ~
'(
5 f. W: W1 s; {8 |, { (0 . "TEXT"), V" l5 C! d& u8 y
(8 . "451")
8 ?. S* F& Q# i$ r# K8 T( s0 U (62 . 13)
+ G$ W' x, l5 ?8 a/ o (50 . 0.0)
1 f$ |. D5 G, G) e( y' K- b (41 . 0.8)
: J, x# P' r" C5 a& ?, V (51 . 0.0)
: H" \9 \6 ~. m4 f+ W4 `5 N4 T- V" W (7 . "Standard")
3 l/ R5 R& I' m8 r/ O (71 . 0)0 a5 E" X$ W; q$ X& F7 u
(72 . 0)
9 C; {5 q+ y V5 l# I# I) i (73 . 0)
' e; q2 i) R6 E0 M )
$ G1 Q! y8 W3 f0 j )4 M9 }) f( T: E5 G9 O8 o' W
9 \+ i7 p: |- { (command "Zoom" "e")
8 j- k) w% O* c1 d7 K+ i$ k ' v! G& y8 l; M+ _, _
(setq ss (ssget "x" TxtEq)( r. w; h' r3 l: V, ^
ssa (ssadd)0 B! w1 p$ O# ?: v2 ]! H
;; ssb (ssadd)
g K( g" o/ |. ]: b idx 0
' A- J5 Z: b: h' y )
& c$ j" D* A# W$ U& x
4 R5 l2 K" q' D' `0 V/ ~$ ] (while (setq ee (ssname ss idx))
0 G, d- e7 T: X- q (if (gtUpT ee)
3 J, ?7 i9 [# y (ssadd ee ssa)7 o' x# [- H& c1 U1 R7 R- g
;; (ssadd ee ssb)
$ W( a Z: a) e$ O )
2 ^: Q6 v e2 O5 _ (setq idx (1+ idx))
" |6 v" Y M1 S# v% W2 b+ ^' `) f )
* j0 c! M' p7 W* X: o6 |5 t7 U (command "Erase" ssa "")
, P) K3 i& i. k# i" A (princ)
0 h1 e7 G d0 b& d! y) |
|