本帖最后由 作者 于 2008-10-17 0:26:11 编辑
没人帮忙啊,自己解决一下.有高手能解决一下用上面的方法实现吗- '双击块实现调用自定议函数 配合 undefine mtedit 并自定mtedit函数为空操作,可蔽屏系统默认修改属性
- Private Sub AcadDocument_BeginDoubleClick(ByVal PickPoint As Variant)
- On Error Resume Next
- Dim ssset As AcadSelectionSet
- Set ssset= ThisDrawing.SelectionSets.Add("SSET1")
- Dim point(0 To 2) As Double
- Dim gpCode(0) As Integer
- Dim dataValue(0) As Variant
- gpCode(0) = 0
- dataValue(0) = "Insert"
- ssset.SelectAtPoint PickPoint, gpCode, dataValue
- If ssset.COUNT <> 0 Then
- If ssset.Item(0).HasAttributes Then
- MsgBox ssset.Item(0).ObjectName & "带属性"
- Else
- MsgBox ssset.Item(0).ObjectName & "不带属性"
- End If
- Else
- MsgBox " 没有选择块 "
- End If
- ssset.Clear
- ssset.Delete
- Set ssset = Nothing
- End Sub
|