我用过这个
~'J'~
- '' written by Tony Tanzillo
- '' request check "Break on Unhandled Errors" in General options
- Public Sub LoopExample()
- Dim Msg As String
- Msg = vbCrLf & "First point: "
- Dim MyPoint As Variant
- Do
- On Error Resume Next
- MyPoint = ThisDrawing.Utility.GetPoint(, Msg)
- If Err Then
- Err.Clear
- Exit Do
- End If
- On Error GoTo 0
- ' Process the entered point here
- ThisDrawing.ModelSpace.AddCircle MyPoint, 10#
- Msg = vbCrLf & "Next point or ENTER to exit: "
- Loop
- On Error GoTo 0
- End Sub
|