How to access PersistantSettings

The Rhino command allows to override public override void LoadProfile(string lpszSection, ref RMA.Rhino.MRhinoProfileContext pc).
I can not find anything similar in Rhino 6. I have found PersistantSettings, but I have no idea how to access them. Is there any example?

I have found that I can call PersistentSettings.FromPlugInId(Guid). That is nice. Than I can add my stuff to it. But how to save it?

Hi @bartek,

I’m confused - are you using RhinoCommon or the obsolete Rhino.NET?

– Dale

Your PlugIn and Command classes all have a Settings property that you should use to access these persistent settings. Rhino handles all of the serialization for you.

Hi Guys,
I don’t know why I can not see my last post (maybe I’ve simply forgotten to submit it). I’ve found that on my main plugin class I can access Settings property. This part is missing in new example. When I’ve found it everything was easy. If somebody else will look for it: Settings.SetString(“varName”, value); and SaveSettings();

The topic can be closed :slight_smile: