algorithmic modeling for Rhino
The Horster Tools plugin has a ReadTxt component that reads all Rhino text objects to strings (you get their coordinates as well)
Alternatively you can create a scripting component to read the text property from the refferenced GUID:
refference the GUID the same way you refference geometry, put this code inside the VB.net component:
Dim obj As Rhino.DocObjects.TextObject
obj = Rhino.RhinoDoc.ActiveDoc.Objects.Find(x)
A = obj.DisplayText
thanks !
works great
:)
by the way , the horster tools plugin didn't work for some reason...
Hi,
How to use this script in C#?
Dim obj As Rhino.DocObjects.TextObject
obj = Rhino.RhinoDoc.ActiveDoc.Objects.Find(x)
A = obj.DisplayText
Thanks,
Petras
private void RunScript(Guid x, ref object A)
{
Rhino.DocObjects.TextObject obj = default(Rhino.DocObjects.TextObject);
obj = (Rhino.DocObjects.TextObject) Rhino.RhinoDoc.ActiveDoc.Objects.Find(x);
A = obj.DisplayText;
}
Dim obj As Rhino.DocObjects.TextObject
obj = DirectCast(Rhino.RhinoDoc.ActiveDoc.Objects.Find(x), Rhino.DocObjects.TextObject)
A = obj.DisplayText
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