Undo/redo and RhinoDoc.Strings

If I write a value to RhinoDoc.Strings it is not reverted as a part of an undo record. Is this expected behavior? Should I perhaps use some other mechanism for storing my metadata so that it can be reverted as a part of an undo/redo operation?

Example:

var undoId = doc.BeginUndoRecord("My operation");

// lots of geometry handling
doc.Strings.SetString("My key", "My new value");

doc.EndUndoRecord(undoId);

//If I trigger undo in the UI the value is still: "My new value"

Hi @ia1,

This is a know issue, and it’s been resolved for the most part in the Rhino WIP.

https://mcneel.myjetbrains.com/youtrack/issue/RH-43817

– Dale