Custom undo/redo with Brep


#1

Hi all,

What I have made is a function to smooth/adjust a Brep through mouse movement. When I call the function a dialog will be shown with Dialog.Show (not ShowDialog). This way the function will continue to the end and the dialog will stay open. I can hold my left mouse button and move it around for adjustments. Because the function has already ended after after Dialog.Show it will not track the adjustments to the object.

How can I add this Brep to the undo/redo list or maybe add a custom Undo/Redo?

Thanks for reading.

I am using RhinoCommon in vb.NET


(David Rutten) #2

BeginUndoRecord?
If you’re modifying stuff outside of commands, then there won’t be an automatic undo record for you.