I have used the code provided by Danny and it works, but I need it tweaked a little bit , if anyone cares to lend a hand.
We have a block that has the same attribute tag and block name. Except one attribute value is LC01, LC02 etc. and the other one is SD01, SD02 etc. We only need to select all of the LC## ones.
I can get it to work by changing the code to select LC50 for example, but how can I modify it so that it finds all the blocks with a value for the attribute with a wildcard. Like LC** for example.
(setq SB_FindVal (getstring "\nAttribute Value: "))
(setq SB_FindVal "LC50")