Hi, I have a program like this.
Sketchup.active_model.start_operation "My Ext"
# Do Somthing
Sketchup.active_model.commit_operation
# I wish to undo here.
Is it possible to undo “Do Something” in program?
Thank you so much for your help.
Hi, I have a program like this.
Sketchup.active_model.start_operation "My Ext"
# Do Somthing
Sketchup.active_model.commit_operation
# I wish to undo here.
Is it possible to undo “Do Something” in program?
Thank you so much for your help.
Thank you Dezmo. I should be more careful.
It seems instead of: Sketchup.active_model.commit_operation Sketchup.undo, You can do: Sketchup.active_model.abort_operation and it is better.
Depends on what you want to achieve. Both usage of methods can have its own purpose.
![]()
Sarcasm mode on.
Sorry we can only answer what you have written, and not what you think about...
Sarcasm mode off.
![]()
![]()