My PlugIn MFis Wire uses events (e. g. ReplaceRhinoObject and AddRhinoObject) to detect if the user interacts with objects handled by the plug-in. When opening a document from within Rhino, events are triggered during the «Open» command which I can easily ignore. When opening a document by double-clicking in Windows Explorer however, a lot of events are triggered at the first command run. This causes my plug-in unnecessary object updates and unnecessarily activating a plug-in license. This is a bit annoying for the user. What can I do to ignore these events triggered by Rhino during the first command?
You can reproduce what I mean by opening the file:
MFis_Wire_Step_by_Step__5_Drawing_Bond_Wires_Part_2.3dm (1.5 MB)
Opening the file from explorer and calling the Command SampleCsEventWatcher will produce this output with many events:
open from Explorer.txt (14.8 KB)
Opening Rhino with an empty session, starting the event watcher and opening a file produces this result, which I can easily handle with my plug-in:
open from Rhino.txt (6.3 KB)
Any idea how to ignore the unwanted events triggered during the first command after opening a document from Windows Explorer?
Samuel