Restore State In Grasshopper with Value List/Slider

Hi All,

Has anyone found a way to access the Restore State option from the solutions menu via a slider or value list and boolean from a script module on the canvas.

I found this answer on the old forum but not been able to get it to work in a code block.

http://www.grasshopper3d.com/forum/topics/reinstate-stored-state-from-component.

@DavidRutten would the code you posted in the link still work in Rhino 6 GH1 and what language was it written in as got errors in both C# and VB components if i paste the code and set the inputs to int and boolean.

Cheers Matt