- 积分
- 2709
- 明经币
- 个
- 注册时间
- 2003-11-29
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2004-9-9 21:35:00
|
显示全部楼层
VBA可以实现。
Sub AcadDocument_BeginDoubleClick(ByVal PickPoint As Variant) If PickfirstSelectionSet.Count <> 1 Then Exit Sub Select Case PickfirstSelectionSet.Item(0).ObjectName Case "AcDbText", "AcDbMText", "AcDbAlignedDimension", "AcDbRotatedDimension", "AcDbDiametricDimension", "AcDbRadialDimension", "AcDb2LineAngularDimension", "AcDb3PointAngularDimension" ActiveDocument.SendCommand "_ed" & vbCr ActiveDocument.SendCommand vbCr Case "AcDbBlockReference" If PickfirstSelectionSet.Item(0).HasAttributes Then ActiveDocument.SendCommand "_attedit" & vbCr & "(handent " & Chr(34) & PickfirstSelectionSet.Item(0).Handle & Chr(34) & ")" & vbCr Else Exit Sub End If Case Else End Select End Sub |
|