algorithmic modeling for Rhino
Tags:
I Have came into the same problem.
Human's layer has no information of Father and children.That's no what I want!!
Then why not include that in your post?
If you would like people to be helpful don't complain when you don't give them the whole picture.
Hi Flat Tyre,
This is because the LayerTable contains all layers that have been created. The deleted layers still exist in the table due to Undo purposes. The deleted layers have the property IsDeleted set to true. They don't show up in the Layer Manager in Rhino though.
Adapting your lines of code will handle the output of layers, that are not deleted:
List<Layer> layertable = new List<Layer>(RhinoDocument.Layers.Where(delegate(Layer l){return !l.IsDeleted;}));
A = layertable;
I don't know what you're doing, but if you're messing around a lot with layers you should purge unused layers (deleted but still in the LayerTable) once a while.
Cheers
FF
OH,Cheers,That's what I want,Thank you.
I like linq--
Share What I have done.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by