I am new to VBScript and am attempting to make my first GH component and am in need of some direction. The initial goal of the script is to retrieve the name of a given geometry, in this case a point and then move that point to the elevation specified by the name. I am attempting to retrive the name from here:
Below is an image of the gh file I’m using as reference:
What I’ve written so far:
Private Sub RunScript(ByVal Point As Point3d, ByRef Output As Object) Dim strName As String Dim go As New rhino.DocObjects.ObjectAttributes go = Point StrName = go.Name Output = StrName End Sub
It is clear that Rhino.Geometry.Point3D cannot be converted to Rhino.DocObjects.ObjectAttributes and I am unsure how to make that conversion happen or if I am even going in the right direction.
Thanks for the help,