algorithmic modeling for Rhino
Rhino.DocObjects.RhinoObject[] srf;
srf = doc.Objects.FindByLayer(layerName[0]);
List<Rhino.DocObjects.RhinoObject> srfs = new
List<Rhino.DocObjects.RhinoObject>();
foreach(Rhino.DocObjects.RhinoObject obj in srf)
{
obj.Select(true);
srfs.Add(obj);
}
A = srfs;
Tags:
List <int < srfs = new Listi <int <();
System.Collections.Generic.List < Guid < ids = new System.Collections.Generic.List <Guid<();
foreach(Rhino.DocObjects.RhinoObject obj in srf)
{
//obj.Select(true); //select objects in the layer
ids.Add(obj.Id);
}
if(del == true) //bool input
{
for(int i = 0; i < ids.Count; i++)
{
doc.Objects.Delete(ids[i], false);
}
} else
return;
i cannot run such codes. and i terribly need one of those. can you give me an example how to put entry etc and send?
THNX
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