Selection Set Filter for Dyanamic Blocks?

Selection Set Filter for Dyanamic Blocks?

Anonymous
Not applicable
297 Views
1 Reply
Message 1 of 2

Selection Set Filter for Dyanamic Blocks?

Anonymous
Not applicable
Looking for a way to quickly get a set of all (Inserted) Dynamic Blocks, preferrably in ModelSpace only. is there a filter for this?
Or do I just use the standard block selection set filter for 'AcadBlockReference' to start, then loop back thru the selection set checking for the 'IsDynamicBlock' property?

thanks ...
0 Likes
298 Views
1 Reply
Reply (1)
Message 2 of 2

gizmowiebe
Contributor
Contributor
You can modify the code here

http://www.visiblevisual.com/index.php/AutoCad-VBA/count-blocks.html

add something like this


Dim oBkRef As IAcadBlockReference

If oBkRef.sDynamicBlock = True Then.... 'Check if it is a dynamic block

Regards
0 Likes