I am using the event “Grasshopper.Instances.DocumentServer.DocumentRemoved +=” inside a c# script component to write a text document when the grasshopper definition is close in order to understand if this particular file is open or closed.
After the latest Service Release 13 of Rhino and release of grasshopper 1.0.0007 the event does not seem to execute any more. Was a feature added that could have altered the behavior?
it’s possible i am using this event incorrectly or there is a better way.
I can’t repeat it either using the attached file, however it is possible that another event handler which gets called before yours is throwing an exception. I think that would prevent further handling (more testing required).
I’m pretty new to using events, I wasn’t sure what to look into when this was not able to execute. But it looks like you are correct David. I should have done a more thourough testing but I did a clean reinstall and the event is back working.