Nested Blockrefs?

Nested Blockrefs?

Anonymous
Not applicable
127 Views
1 Reply
Message 1 of 2

Nested Blockrefs?

Anonymous
Not applicable
Ok, how do you access nested blockrefs?!?
0 Likes
128 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
If you were using A2K, I'd say Tony T's Acadx but you're not. The slow, ugly
way is to cycle through the all the blocks (not inserts) and check their
contents to see if they contain a reference to block you're after:

For i = 0 To ThisDrawing.Blocks.Count - 1
Set blkDef = ThisDrawing.Blocks(i)
For j = 0 To blkDef.Count -1
If TypeOf blkDef.Item(i) Is AcadBlock Then
If blkDef.Item(i).Name = Then

End If
End If
Next
Next

Now remember: I never said this is the *only* way, just the slow and ugly
one.

--
Attitudes are contagious. Is yours worth catching?
http://www.acadx.com

sfurey < csbent@csbent.com> wrote in message
news:ef47a49.-1@WebX.SaUCah8kaAW...
> Ok, how do you access nested blockrefs?!?
>
0 Likes