Determine "right button down" "esc pressed" "enter pressed" for GetPoint

Use GetPoint to get multiple points, and then do difference things

  1. “mouse right button down” and “key enter pressed”: drawing and save polyline with previous points
  2. “key esc pressed”: do nothing
    but GetResult return by GetPoint.Get() always GetResult.Cancel.

Thanks

I think you need to enable “accept nothing”, this will return the “nothing” getresult when Enter was pressed or rmb was clicked (if rmb is set up to send Enter in the options). Now you can distinguish between Cancel (esc) and Nothing (enter).

1 Like

Thanks. It works