Posted 17 January 2023, 10:58 pm EST
Hello,
- I’d like to execute a command without it entering the undo history. I don’t want to erase existing history or cause the history to loop back around. I just want a specific command not to be added to it when I need it to be paused.
After the command is executed, I will turn undo history back on.
I tried suspendDirty(), allowUndo, etc and everything still adds to undo history.
- Is there a way to intercept ALL command events, one at a time as they occur, in a similar format to the undo history commands but with actual event triggering? I’d like to do this without having to bind events to every single command type.
What I’m trying to do is mimic the collaboration that can be done in Excel via MS Teams by sending commands across the wire to users editing the same workbook to keep them in sync. But, I don’t want the command crossing the network to be added to the other user’s undo.
Thanks!