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.
After some further testing with another person upgrading, I think this is due to the Rhino update and not to something on the grasshopper side. I’m switching groups to see if it gains any traction.
sometimes there are issues with updates. We will be thankful for any help discovering them.
Do you have a code sample that can reproduce this problem in SR13?
I tried the following in Version 6 SR15 early Release Candidate codestream and there seems to be no issue.
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.