Dock RCP via Grasshopper Python

Hi there,

Does anyone know how to dock a panel from a Python component in Grasshopper? I want to dock JUST the Remote Control Panel in Rhino. Like this:

I managed to open just the Remote Control Panel, but it opens as a floating window and I want it to be docked:

This is the code I have so far:

import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino, System
import Grasshopper as gh

if rcp:
panels = Rhino.UI.Panels.GetOpenPanelIds()

for panel in panels:


rcpid = Rhino.UI.Panels.GetOpenPanelIds()
print "------ RCP ID:"
print rcpid

docks = Rhino.UI.Panels.PanelDockBar(rcpid[0])
print "------ DOCK ID:"
print docks

for rcp in rcpid:



As much as I like the simplicity of the RCP panel with GH, I would not invest too much time into it and probably go with something more flexible like Human UI.

I am pretty sure that RCP will either completely change or go away with GH2 anyways. I seem to remember @DavidRutten saying something to that effect.

And I agree it needs to be improved dramatically. The idea of it is great for when you need more control than using GH Player and want to run a whole tool built in GH, sort of like a plugin.

As the RCP panel stands at the moment it is just not on par with GH itself or the rest of the Rhino UI and is lacking a lot of features.