JAM
23-05-2005, 11:05 AM
Hi!
I am wondering how to assign a AcadBlockReference variable value to the existing BlockReference object on the drawing. I have the BlockReference object on the drawing named "Corner-Stamp_2".
Sub ATTRIB()
Dim MyBlock As AcadBlock
Dim MyBlocks As AcadBlocks
Dim MyBlockReference As AcadBlockReference
Dim Atts As Variant
Set MyBlocks = ThisDrawing.Blocks
Set MyBlock = MyBlocks.Item("Corner_Stamp_2")
'???????????????????????????????????
'Set MyBlockReference = ???????
'Atts = MyBlockReference.GetAttributes
'will write them to database later
'???????????????????????????????????
End Sub
I am wondering how to assign a AcadBlockReference variable value to the existing BlockReference object on the drawing. I have the BlockReference object on the drawing named "Corner-Stamp_2".
Sub ATTRIB()
Dim MyBlock As AcadBlock
Dim MyBlocks As AcadBlocks
Dim MyBlockReference As AcadBlockReference
Dim Atts As Variant
Set MyBlocks = ThisDrawing.Blocks
Set MyBlock = MyBlocks.Item("Corner_Stamp_2")
'???????????????????????????????????
'Set MyBlockReference = ???????
'Atts = MyBlockReference.GetAttributes
'will write them to database later
'???????????????????????????????????
End Sub