Message 1 of 3
Error when escaping GetPoint
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am using the GetPoint function to prompt the user to select a point on screen. However if the user changes their mind & presses escape, my code throws an exception. I know I can use a Try/Catch to handle it, but I was wondering if there was a better way, as Try/Catch is not very elegant. The pertinent code is below....
Dim origin As Double() = CType(acadDoc.Utility.GetPoint(, "Select part origin: "), Double())
xOrigin = origin(0)
yOrigin = origin(1)
BTW ... I am using the COM/Interop API & VB.Net
Thanks...