selection set of all instances of a specific dynamic block by name in my model space

selection set of all instances of a specific dynamic block by name in my model space

mohandis2
Advocate Advocate
610 Views
5 Replies
Message 1 of 6

selection set of all instances of a specific dynamic block by name in my model space

mohandis2
Advocate
Advocate

I tried many posts here but did not find what I want

I want to built a selection set of all instances of a specific dynamic block by name in my model space.

Can anyone help?

 

Thanks.

 

0 Likes
Accepted solutions (1)
611 Views
5 Replies
Replies (5)
Message 2 of 6

Ed__Jobe
Mentor
Mentor

Post what you've tried and why it's not working. FYI, for dynamic blocks, you can't use the Name property. You have to use the EffectiveName property.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 6

mohandis2
Advocate
Advocate

After some searches I made, I found that there is a bug filtering dynamic blocks by EffectiveName,

I made a selection set of all blocks, than run a loop deleting from that set all blocks that do not match my target block EffectiveName,

Thanks

0 Likes
Message 4 of 6

Ed__Jobe
Mentor
Mentor

What bug are you talking about?

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 6 of 6

Ed__Jobe
Mentor
Mentor
Accepted solution

OK, that is not a bug or error. It's just how you have to search for db's. The Name property is likely to be "*U##". So you have to iterate a selection set of blocks and examine their EffectiveName property, which is what I mentioned in my first post.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes