Store Custom RenderContent

Is it possible to create a custom RenderContent (for example RenderMaterial), which is not added directly to RenderMaterials (I don’t want the users to see this type of content), but make Rhino save the content automatically?
Actually the problem is not about saving (I can serialize the contentand add my custom Chunk), but it seems changing field values for this kind of content is not undoable and can cause problem when undoing it.

Any idea?
Thanks, Márton

Hi @marton.parlagh,

It’s certainly possible to add your own user data to object and to the document. Rhino also supports custom undo, so you can play in that system as well.

TestUndo.cs (2.5 KB)

– Dale