I would like to modify RhinoObject user dictionary and I would like to let the user to undo this operation.
Basically, my code looks like this:
UInt32 recordSerialNumber = RhinoDoc.ActiveDoc.BeginUndoRecord(“UpdateUserDictionary”);
If I hit the undo butto, right after the code was executed, Rhino simply shows a “Nothing to undo” message and, of course object user dictionary wasn’t restore to its previous state.
What am I doing wrong?