Is there a way in VB, VB(a) or even in Lisp, but preferably VB) to access a nested block directly by name ?
Scenario: I have a number of blocks, all with unique names, and in those blocks are a number of nested blocks. The nested blocks have common names.
Say for example, I want to flip the visibility of the nested blocks. Currently I am looping through the block collection, finding the parent block, then looping through each entity, checking if it is a block reference, if it is, I check the name and if it's the right nested block, I flip the visibility.
This takes quite a while on large drawings and I wondered if there was a way somehow, given that I know all the block names to dive in straight to the nested block without having to iterate through entities.