[COLOR="#A9A9A9"]
...........
...........
(setq th (setq tmp le))
(while (setq tmp (entnext tmp))[/COLOR][COLOR="#FF0000"][/COLOR][B] [COLOR="#FF0000"](if (/= (cdr (assoc 0 (entget tmp))) "text")[/COLOR][/B][COLOR="#A9A9A9"] (entmake (entget tmp))[/COLOR][B][COLOR="#FF0000"] (setq txt (entget tmp))[/COLOR][/B][B][COLOR="#FF0000"] )[/COLOR][/B]
[COLOR="#A9A9A9"] )
(setq tmp (entmake (list (cons '0 "endblk"))))
(while (setq th (entnext th))
(entdel th)
)[/COLOR] [B][COLOR="#FF0000"] (if txt (entmake txt))[/COLOR][/B][COLOR="#A9A9A9"] (entdel le)
...
...[/COLOR]