Message 1 of 15
Get Block references by Name

Not applicable
01-13-2011
08:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This may seem like a duplicate post, but I have read the forums and run across a few posts - one of which being http://forums.autodesk.com/t5/NET/C-find-Block-References-by-Name/m-p/1672857/highlight/true#M3723 where Tony mentions using GetBlockReferenceIds.
I also did a few google searches and found some vague references as well. My goal is to find all instances of an inserted block with a certain name. I would prefer to not iterate through the entire block table as this seems expensive as far as resources. However, in some of the google hits I found people mentioned that there are some pitfalls to using GetBlockReferenceIds because it can return erased blocks.
Is there a best practice on this?
Thanks in advance.