Snapping to Temp Lines

There is no current access (at all) to the undo / redo stack.

The best you can do is use the transparent boolean arguments to Sketchup::Model#start_operation().