Hello to all,
I've always used the following code to manage individual objects group selection:
(setq selez (ssget))
(setq n 0)
(setq ent1 (ssname selez n))
(while (/= ent1 nil)
(progn
(command "_chprop" ent1 "" "_c" "1" "")
;--
(setq n (+ n 1))
(setq ent1 (ssname selez n))
)
)
I'm not sure but I think there is a cleaner way to do the same thing.
Is there a function like "foreach", but that use groups selection instead of lists?
How do you?
Thanks in advance