Originally Posted by
ccowgill
Does anyone know what I can use to select a piece of text and have it pick out duplicate words and delete the one I choose
Here is an example
44+44 44+44 12" MAPLE 36 36'
I would like to delete the one of the 44+44's and the 36 without the '
There are about 200 to 300 text that are similar to the example in a drawing I am working with.
Any help would be appreciated
Hi ccowgill
Let play with this
Thank you
f.
Code:
(setq new_text "44+44 12\" MAPLE 36'")
;;or:
;;(setq new_text (getstring T "\nEnter new string : \n"))
(setq ss
(ssget "_X" '((0 . "TEXT")(1 . "*44+44*,*36'"))) i -1)
(while (setq en (ssname ss (setq i (1+ i))))
(setq elist (entget en))
(entmod (subst (cons 1 new_text)(assoc 1 elist) elist))
(entupd en)
)