algorithmic modeling for Rhino
Try something like:
Private Sub RunScript(ByVal x As Guid, ByRef A As Object)
Dim attr = RhinoDoc.ActiveDoc.Objects.Find(x).Attributes
A = attr.ObjectColor
Note that the input is asking for a GUID. I usually do this by passing the referenced geometry through an "ID" parameter before passing it into the script. You may also be interested in attr.ColorSource, which will tell you whether the color of the object is by layer or by object.
u re usin such structures particular to rhino attributes. "Dim attr = RhinoDoc.ActiveDoc.Objects.Find(x).Attributes" in order to call them
can u tell me pls where i can find a list of such attributes for VB and C. when i want to write a program i cannot make the TAKE OFF.
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by