Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8553

Layer.IsVisible doesn't work

$
0
0

@Ivan1 wrote:

Hello,

I am having issues with turning the visibility of all my layers off (except the default one).

So in my main function I do a lot of things including adding new layers, childlayers, adding objects to these layers and changing properties as well. Then after everything, but before doc.Views.Redraw(); I do the following, which sadly doesn't work:

for (int i = 1; i < doc.Layers.Count; i++)
{
    doc.Layers[i].IsVisible = false;
}

Not one layers has been turned invisible. What is wrong with that code? Can someone help how to do it correctly? (I program a C# Rhino Plug-In for Windows.)
Thanks.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 8553

Trending Articles