Hello,
I have a situation in which I have to open a file which loads a Plug-in Im working with.
I need to check the document and see if its valid to open, if its not, I would like to abort the opening of the model.
Currently I’m able to cancel the loading of the Plug-in data, however the document with the host rhino geometry is still loaded
The solution I’m trying is to first generate a flag in ReadDocument
override of my plug-in. And I register a event handler for Rhino OpenDocument
event where I try to execute the following
RhinoDoc.ActiveDoc.Modified = false;
RhinoApp.RunScript("_-New _None", false);
This sometimes works, but sometimes it crashes Rhino.
There is a safe way to cancel the opening of a Rhino document that contains a Plugin content?