I'm writing a routine where I want to pull one item out of the entdata of an
object. Here's the pertinent section of code:
(while (>= counter 0)
(setq item (ssname ss counter))
(setq ent (entget item))
(setq backhalf(cdr(member (assoc 48 ent) ent)))
(setq fronthalf(reverse(cdr(member(assoc 48 (reverse ent))(reverse
(setq ent (append fronthalf backhalf))
(entmod ent)(entupd item)
(setq counter (1- counter))
When I test ent before and after the entmod, it looks right. When I test the
entdata of item before and after the entupd, it is the same(unchanged).
The routine exits as if done, but the object on screen is unchanged, and
when I use (entget(car(entsel))) at the command prompt and pick the object,
the list is unchanged.
What am I doing wrong?
Click to see the full signature.