working in other peoples' drawings, some plans have a couple hundred rooms, and a couple hundred room numbers. the program I am working on uses these room numbers, and I need to be able to count on them being unique. they should BE unique, they are room numbers. but I am finding duplication. I guess someone copied and failed to edit.
I intend to ssget "X" and filter for text on a layer. but I found two "111" s. the best thing to do would probably make one of them "111A", but it's possible that there already is a "111A".
I've read several posts here about DELETING duplicates, but not for editing.
maybe a start would be:
(repeat (- (length pp) 1)
(if (member (car pp) (cdr pp))
(setq dup_lst (list (append dup_lst (car pp))) pp (cdr pp))
(setq pp (cdr pp))
)
)
(foreach a dup_lst
(setq it (ssget "_X" '((0 . "TEXT")(1 . a))))))
)
no, that won't quite work. I haven't even made sure there can be no duplicates in my dup_lst, have I?
any real bright ideas?
roy