Is there more than one attribute in the inserts?
If so how will that attribute be identified?
I was thinking of the same thing, guess there's only
one attribute on the block and then the OP wants to be prompted for selection , otherwise the code would be needing a conditional test.
Tried Tharwats code on a block with mulitple Attributes and each and every values now has an "A" prefix including blanks.
So if that is the case, something like this would be a good addition. <that is if "_X" selection method is prefered>
(if (wcmatch (vla-get-textstring x) "pattern*") .....
)