Obtaining the block handle

Obtaining the block handle

Anonymous
Not applicable
400 Views
1 Reply
Message 1 of 2

Obtaining the block handle

Anonymous
Not applicable
How can I obtain the block handle to which a reference block is pointing?
For example, obtaining the id of the plane:
objBlockRef.OwnerID
objBlockRef.acadBlock

Thanx!!
0 Likes
401 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Assuming you have the objBlockRef object already....

Dim oBlock As AcadBlock
Dim sHandle As String
Set oBlock = ThisDrawing.Blocks.Item(objBlockRef.Name)
sHandle = oBlock.Handle

wrote in message news:5152633@discussion.autodesk.com...
How can I obtain the block handle to which a reference block is pointing?
For example, obtaining the id of the plane:
objBlockRef.OwnerID
objBlockRef.acadBlock

Thanx!!
0 Likes