Undo vs abort operation?

I sometimes want to do some temporary manipulation of the contents of a model (e.g. adding or removing geometry for some analysis) and then restore the model to the original condition afterward without clutter on the undo stack. I can see two ways to do this: model#abort_operation, and model#commit_operation followed by Sketchup#undo.

Is there any advantage to one over the other, aside from the fact that undo requires first committing the operation, so it makes SketchUp do a lot more work. My sense is that abort_operation was meant to bail out when an exception occurs, but is there a downside to using it as a technique in other situations?

1 Like