How get Current CRhinoDoc Instance from except for event?

Hi guys.

I use Rhino C++ API for developing.
I want to get CRhinoDocs Instance from except for Event, and extend attribute text.
Is there some static method to get the instance?


hi @oktkhr0916,

yes of course, in the SDK there is the function


There you get your instance of CRhinoApp and from them you can get either a specific document with GetDocument() or the current active one with ActiveDoc().

1 Like

hi @dsw

Omg, I missed the class.
Thank you !