How to access RhinoDoc Instance From dockable panel button

Hi All,

I need to use RhinoCommon Functions that needed RhinoDoc Instance from a button on my Plugin Panel .

How can I do that ?

Does your plugin have a RunCommand method? If so, you should use RhinoDoc doc.

Events GUI Controls on dockable panel are available before “RunCommand”.

I think I can access RhinoApp and My PlugIn instance from these events , but I could not find to access RhinoDoc instance.

You should be able to use Rhino.RhinoDoc.ActiveDoc, though on Rhino for Mac, the ActiveDoc can change.

Thank you very much !

1 Like