Can i do something in an extension without undo?

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?

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.

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

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