马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
Corresponding blockreference of an attributereference
ID 56037
Applies to: AutoCAD 2000
Date 6/30/2000
This document is part of Attribute Block Reference COM-ActiveX Interfaces VBA ActiveX/VBA Technical Newsletter - July 2000
Question
How do I obtain the parent blockReference from an attributeReference after it
has been modified?
Answer
Use the following sample code to do this, but first place it in the
ObjectModified event of AcadDocument object:
- [FONT=courier new]
- Public flag As Boolean
- Private Sub AcadDocument_ObjectModified(ByVal Object As Object)
- If Object.ObjectName = "AcDbAttribute" Then
- flag = True
- ElseIf flag = True And Object.ObjectName = "AcDbBlockReference" Then
- MsgBox Object.Handle, vbInformation, "BlockReference Handle"
- flag = False
- End If
- End Sub
- [/FONT]
|