Creating GH_state using "GH_State.Write" and "GH_IO.Serialization"

Hi!
I would like to set a number of sliders on my Grasshopper canvas to values specified in an external document, using the “State” functionality.
I have found examples of how to save the current state of components programmatically (Preferably with Python, but C# is OK as well), but now I want to create a brand new “State” with Component Guid<->value pairs that I supply. One way to fill a state with values is with “GH_State.Read”.

Does anyone have experience of this method? I guess the normal way of using this would be to first use “GH_State.Write” to create some kind of archive document. is it possible to create this document myself, from the GUID<->value pairs?

Happy for any hints or pointers!

moved to Grasshopper developer category