Hi all,
I am working on this little macro to change elements from one layer to the next, the only issue I have is the layer is inside a block and I am trying to figure out how to iterate thru a block to change the sublayers... I found in the help doc. for ssget ":N, :U, :V" but I am not skilled enought to them to work, pluse I think there is a different way to make this work with out using those selection methods, anyway if someone can give me a push in the right direction this would be helpful...
(defun c:test ( / ss cnt elist ent)
(if (and (tblsearch "layer" "ROOMOV")
(setq ss (ssget "X" (list (cons 8 "ROOMOV"))))
)
(progn
(setq cnt 0)
(repeat (sslength ss)
(setq elist (entget (ssname ss cnt)))
(setq ent (subst (cons 8 "ROOMNO")(assoc 8 elist) elist))
(entmod ent)
(setq cnt (+ 1 cnt))
)
)
)
(princ)
)
Thanks