Hi, I am trying to compile my RDK plugin with the latest Rhino6 build. I get a compile error indicating I need to implement IUserInterfaceSection.Hidden(). If was able to get past this error with:
public bool Hidden
{
get;
set;
}
However what is intended here?
Then I have…
1>C:\Octane Plugin Projects\Rhino\HostManager.cs(502,52,502,101): warning CS0618: ‘Rhino.Render.RenderEnvironment.CurrentEnvironment’ is obsolete: ‘Obsolete, use RhinoDoc.CurrentEnvironment’
However RhinoDoc.CurrentEnvironment does not exist.
The Hidden() function is designed to allow the UI section to hide itself when it does not want to be visible. If you return true the section will be hidden. Many UI sections will simply implement this and return false. You only have to return true if you specifically want to hide the section.
RhinoDoc.CurrentEnvironment does exist in the C++ SDK and probably just needs wrapping for C#. I think Andy can better answer that question.
[quote=“johnc, post:3, topic:30450”]
The Hidden() function is designed to allow the UI section to hide itself when it does not want to be visible. If you return true the section will be hidden. Many UI sections will simply implement this and return false. You only have to return true if you specifically want to hide the section.
[/quote]Do I need to set True in the getter or setter pls?