Storing run-time data in a plugin


Is it OK to store data, that is needed by the plugin for the currently open 3dm file, inside the PlugIn instance during run-time? Is it guaranteed that if there are multiple Rhino instances open concurrently, there will be a separate PlugIn instance for each Rhino instance?

This is of course, assuming than when the file is saved or opened the data will be serialized to UserData of the file.


Yes, each Rhino process has its own instance of your plug-in. There is no shared memory between processes.