Message 1 of 3
Find blocks with ObjectDbx

Not applicable
12-01-2006
07:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need to find all blockreferences in a drawing using ObjectDbx but my
blocks can be in the paperspace or in the modelspace.
I am using 2 For/Next (one for Layouts and one for modelspace) but is there
a faster way?
Thanks
For Each layout In dwgX.Layouts
For Each objAcad In layout
If StrComp(objAcad.EntityName, "AcDbBlockReference", 1) = 0 Then
........................
End If
Next
Next
blocks can be in the paperspace or in the modelspace.
I am using 2 For/Next (one for Layouts and one for modelspace) but is there
a faster way?
Thanks
For Each layout In dwgX.Layouts
For Each objAcad In layout
If StrComp(objAcad.EntityName, "AcDbBlockReference", 1) = 0 Then
........................
End If
Next
Next