如果用户在空间中选择了一个点或者右键单击,如何让这个部分平稳地退出而不被弹出?
- Public Sub GetEntExample()
- Dim returnObj As AcadObject
- Dim basePnt As Variant
-
- On Error Resume Next
-
- ' The following example waits for a selection from the user
- RETRY:
- ThisDrawing.Utility.GetEntity returnObj, basePnt, "Select an object"
-
- If Err 0 Then
- Err.Clear
- MsgBox "Program ended.", , "GetEntity Example"
- Exit Sub
- Else
- returnObj.Update
- MsgBox "The object type is: " & returnObj.EntityName, , "GetEntity Example"
- returnObj.Update
- End If
-
- GoTo RETRY
- End Sub
本帖以下内容被隐藏保护;需要你回复后,才能看到! 游客,如果您要查看本帖隐藏内容请 回复 |