Read Text Dot Value

Is there way to get text dots into grasshopper? I would like to bring them in and then read their value, and then do computations on that value.

1 Like

Hi djnelson,

If there’s no Grasshopper input parameter for particular type of geometry, you can use the “Guid” one. Then check for rhino object which corresponds to that guid.
The attached .gh definition requires ghpython plugin installed.

reference_textDot.gh (11.5 KB)
reference_textDot.3dm (29.5 KB)

5 Likes

Awesome. That does what I need. Thanks

1 Like

I needed to do something like this too, but I didn’t know what the guids would be ahead of time, so I ended up doing it with a layer filter:

from __future__ import print_function

__author__ = "bdoherty"
__version__ = "2023.11.08"

import Rhino
#import rhinoscriptsyntax as rs

values = []
pts = []

dots = Rhino.RhinoDoc.ActiveDoc.Objects.FindByLayer("__Cross_Sectional_Areas")
for dot in dots:
    print (dot.Geometry.Text, dot.Geometry.Point)
    values.append(dot.Geometry.Text)
    pts.append(dot.Geometry.Point)

That was a great starting pint @djordje, thanks!