ActiveDocumentChanged

I’m running Rhino 6 for windows SR16. I have an event handler for the RhinoDoc event ActiveDocumentChanged but it seems like the event is not getting called for some reason. I’m pretty sure it was getting invoked in a prior version. Is there some reason why this event would not be called when a new document is created or an existing document is opened?

Thanks, Larry

Hi @LarryL,

I look into this. But RhinoDoc.BeginOpenDocument and RhinoDoc.EndOpenDocument work well and are probably preferred.

– Dale

Thanks Dale. Temporarily I’ve moved the logic to EndOpenDocument. The reason I was using ActiveDocumentChanged is that I thought that the Mac version behaved more like an MDI app and that a future version of Rhino might also support MDI. Perhaps my assumptions are not correct.

Hi @LarryL,

Perhaps. I haven’t ran any tests with MacRhino. But the code does look like it triggers this event. However, I don’t see where WinRhino is using this.

– Dale