algorithmic modeling for Rhino
Tags:
Sorry I just saw this, one year too late. In case anyone else needs it, the code is the following:
Dim objref As New docobjects.ObjRef(x)
Dim txt As TextEntity = objref.TextEntity
Dim z As String = system.Text.RegularExpressions.Regex.Replace(txt.text, "[^0-9.]", String.Empty)
a = New point3d(txt.Plane.OriginX, txt.Plane.OriginY, z)
This works when the decimal separator is a point, if it's a comma replace [^0-9.] with [^0-9,]
Hi Vicente,
I have been following this script from day one and just realized that You had updated it to only accept numeric input! Thank You for that.
That makes this little tool even more productive!
I was asked to update this script so it works in the current GH version.
It works in the following way:
Place an ID parameter, reference the text objects in this parameter, place a vb component, right click on the x input and set the type hint to GUID, connect the ID parameter to the x input. Double click on the VB component and paste the following code:
Dim objref As New docobjects.ObjRef(x)
Dim txt As TextEntity = objref.TextEntity
a = New point3d(txt.Plane.OriginX, txt.Plane.OriginY, txt.Text)
Hi Vicente,
Is it possible to add options to select one or more points clouds. In order to extract the points of the cloud.
Thanks for your reply
This script converts text objects to 3d points with the z value of the point being the text content.
What would be the purpose of being able to select point clouds?
You want the result of the script to be a point cloud rather than individual points?
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