algorithmic modeling for Rhino
Tags:
Private Sub RunScript(ByVal x As Guid, ByVal y As Object, ByRef A As Object)
Dim obj As New docobjects.ObjRef(x)
Dim att As docobjects.ObjectAttributes = obj.Object.attributes
Dim str As String = att.GetUserString("key")
att.SetUserString("key", str & "!")
doc.Objects.ModifyAttributes(obj, att, False)
End Sub
Dim obj As New docobjects.ObjRef(id)
Dim att As docobjects.ObjectAttributes = obj.Object.attributes
Dim sIfcType As String = att.GetUserString("TypeObjetIFC")
If ((sIfcType = "IfcBeam") Or (sIfcType = "IfcColumn")) Then
'MsgBox "median = " & y & ", min = " & x& ", max =" & z
att.SetUserString("Longueur", z)
att.SetUserString("Largeur", x)
att.SetUserString("Hauteur", y)
End If
doc.Objects.ModifyAttributes(obj, att, False)
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