algorithmic modeling for Rhino
Tags:
Private Sub RunScript(ByVal layer As String, ByRef A As Object)
   Dim layer_index As Int32 = doc.Layers.Find(layer, True)
   If (layer_index < 0) Then Return
   Dim lay As Rhino.DocObjects.Layer = doc.Layers(layer_index)
   Dim objs As Rhino.DocObjects.RhinoObject() = doc.Objects.FindByLayer(lay)
   If (objs Is Nothing) Then Return
   Dim geo As New List(Of GeometryBase)
   For Each obj As Rhino.DocObjects.RhinoObject In objs
     geo.Add(obj.Geometry)
   Next
   A = geo
End SubDim layerColor As Color = lay.ColorDim ref1 As New DocObjects.ObjRef(rhobj)
Dim ref2 As New DocObjects.ObjRef(rhobj.Id)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
    © 2025               Created by Scott Davidson.             
    Powered by
    