I'm looping through a selection set of blocks and creating a list from a number of Constant (& Invisible) attributes.
The problem I'm having is that I cannot filter by block name (a gazillion different blocks), the number of attributes differs with each block and some of the blocks don't have Constant atttributes at all.
I'm using
(vlax-safearray->list
(vlax-variant-value
(vla-getconstantattributes (vlax-ename->vla-object MyBlkent))
)
)
to get the constant attributes, but it throws a wobbly with vlax-safearray->list when it comes across a block without any constant attributes. I keep getting ; error: ActiveX Server returned an error: Invalid index
I've tried all sorts of combinations of vl-catch-all-whatever and I just can't seem to get round this one.
Basically I want the routine to skip over any blocks that do not contain Constant attributes... anyone have any pointers ?