Good afternoon everyone
I've run into a bit of a problem and haven't been able to find a solution yet. I have a routine that inserts a bunch of blocks and explodes them, then uses a FOREACH statement to iterate through each of the exploded block components and changes an attributed tag that was nested in the original block. Works well. However, now I've run into a situation where I need to utilize the express tool's BURST to retain the properties of the layer it was inserted on.
Originally, there was this. It works well because it retained the selection of each block, therefore allowing me to modify the nested block attributes in each inserted instance:
(foreach obj (vlax-invoke tmp 'explode) ;; Explode the block
(cond
;;bunch of COND statements here, including the modification of the nested attributed blocks
) ;; end cond
) ;; end foreach
However, I was unable to get the BURST command to work within the FOREACH function. This is what works for BURSTing, but doesn't iterate through each of the exploded blocks (basically losing the selection):
(sssetfirst nil (ssadd (vlax-vla-object->ename tmp)))
(c:burst)
Does anyone know of a way to use the BURST and still iterate through each of the exploded blocks?
Thanks for any guidance, it's much appreciated.