Esempio n. 1
0
            public static object GetPanel(Guid panelId, uint documentSerialNumber)
            {
                // This won't be necessary Mac Rhino is ported to use the generic panel
                // interfaces
                var value = PanelSystem.Instance(panelId, documentSerialNumber, Guid.Empty);

                return(value?.PanelObject);
            }
Esempio n. 2
0
            public static object GetPanel(Guid panelId)
            {
                var doc = RhinoDoc.ActiveDoc;

                return(doc == null ? null : PanelSystem.Instance(panelId, doc.RuntimeSerialNumber, Guid.Empty)?.PanelObject);
            }