- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a command that changes the definition of a block.
After executing the command, the already existing instance of the block doesn't show the update until a REGEN is executed.
I have added Editor.Regen() at the end of the function, right after it has finished updating the block definition, and now I see the updated block.
The problem is that if, after executing the command, I undo, the block definition goes back to its previous condition, but the existing instance doesn't show the update until a manual REGEN. Again, the undo doesn't know that a REGEN is required.
The command already has the CommandFlags.Redraw flag.
Is adding the Editor.Regen() the correct solution?
If yes, how do I make sure the block is regenerated after undo?
Solved! Go to Solution.