Rhino.UI.Panels.OpenPanel(Type type) not working in Rhino 8

Hi there,

In Rhino 7 I use this code to check if my plugin panel is visible and make it visible when running a command:

 if (!Rhino.UI.Panels.IsPanelVisible(typeof(PanelCgWpf), true))
                    Rhino.UI.Panels.OpenPanel(typeof(PanelCgWpf));

but in Rhino 8 that doesn’t work, if it’s a bug could you please add it to the bug tracker.

Thank you and regards
Will

1 Like

Hi @Harper,

Try using the override that requires a GUID.

If not, please provide a project sample that does not work for you.

Thanks,

– Dale

Hi Dale,

Thanks for you answer, I tried using the dockbar id where the panel is docked and it works, so problem solved.

Thank you again
Will