Do NOT start the operation until after the 2nd click.
As Julia said, use rubber-banding lines drawn on the view from the 1st point to the cursor.
See the SketchUp Team’s "linetool.rb" example in the Ruby Examples extension …
http://extensions.sketchup.com/en/content/example-ruby-scripts