Calling ReadDocument pragmatically

Hi, I’d like to ask if there’s a way to call the PlugIn.ReadDocument method programmatically. It’s an edge case, but it can happen that a user opens a document and only then installs the plug-in that originally wrote the data. In such cases, the document isn’t properly initialized because the plug-in wasn’t loaded when the BeginOpenDocument (and ReadDocument) methods were invoked.

Hi @Chameleon_Tools,

No, there is not.

Best to close Rhino, install your plug-in, run Rhino, ensure your plug-in is available, and then open the file.

More info:

When Rhino is opening a file and detects your plug-in’s user data, if you plug-in is unavailable the Rhino reads your user data into an anonymous user data table. When the file is saved, Rhino writes your anonymous user data to the .3dm file so it is not discarded.

– Dale