Can i do something in an extension without undo?

undo

#1

I’m changing an entity in a timer and don’t want this operation to appear in the undo list. How can I achieve that?


#2

You can use the move! method on ComponentInstances and Groups to change their transformation matrix without having it recorded to the undo stack. Otherwise all changes are recorded, whether you want it or not. Another solution might be to start an operation when the timer starts and commit it once the timer is finished to wrap it as one operation in the stack.


#3

See arguments to: Sketchup::Model#start_operation()


#4

This topic was automatically closed after 91 days. New replies are no longer allowed.