Hi,
I’m trying to create a minimalist skin for rhino. The idea is to hide everything except my project panels and maybe one specific toolbar.
At the moment I have a few issues:
*I can’t figure out how to hide the toolbars
*I 'd like to test from the plugin if I am using the skin or not
*Rhino.ApplicationSettings.AppearanceSettings.CommandPromptPosition = ApplicationSettings.CommandPromptPosition.Hidden
does not seem to work (the command prompt is not hidden)
Here is my source code:
Imports Rhino.Runtime
Imports System.Drawing
Namespace MSP_Skin
Public Class MyMSPSkin
Inherits Rhino.Runtime.Skin
Protected Overrides ReadOnly Property ApplicationName() As String
Get
Return "Mass Summary Project"
End Get
End Property
Protected Overrides ReadOnly Property MainRhinoIcon() As Bitmap
Get
Return My.Resources.scale.ToBitmap
End Get
End Property
Protected Overrides Sub OnMainFrameWindowCreated()
Rhino.ApplicationSettings.AppearanceSettings.SelectedObjectColor = Color.LightSkyBlue
Rhino.ApplicationSettings.AppearanceSettings.MenuVisible = False
Rhino.ApplicationSettings.AppearanceSettings.CommandPromptPosition = ApplicationSettings.CommandPromptPosition.Hidden
Rhino.ApplicationSettings.ModelAidSettings.GridSnap = False
Rhino.ApplicationSettings.ModelAidSettings.Osnap = False
'Close every panels except those from my plugin
For Each ID As System.Guid In Rhino.UI.Panels.GetOpenPanelIds()
If ID = New System.Guid("F6B7996B-C3E3-4686-A4ED-F66E81656FB1") OrElse ID = New System.Guid("DFF7C532-8C58-46A1-B721-F749350509A7") Then
Rhino.UI.Panels.OpenPanel(ID)
Else
Rhino.UI.Panels.ClosePanel(ID)
End If
Next
'Hide items with Rhino_DotNet.dll
RMA.Rhino.RhUtil.RhinoApp.HideControlBars()
RMA.Rhino.RhUtil.RhinoApp.HideToolBars()
RMA.Rhino.RhUtil.RhinoApp.HideWindowBars()
End Sub
End Class
End Namespace