algorithmic modeling for Rhino
Public Overrides Function Parse(ByVal data As String, _
Byval options As EH_ReadFileComponent.EH_ParseOptions) As Object
Dim coord As String() = Nothing
coord = data.Split(",")
Dim pos As String
For Each pos In coord
C = coord
Next pos
End Function
Tags:
A follow-on question:
What would be the appropriate code for a tab-delimited file with only x and Y values? I can convert to comma delimited, but I am working with wings and most airfoils are 2-d point files, so that is what I need to read into GH. Thanks very much.
Please disregard I just edited the file and saved it as .csv in Excel. This script is brilliant - just what I needed. Thanks.
data = "{" & data & "}"
Dim str_list() As String
str_list = data.split(",")
data = "{" & str_list(3) & "," & str_list(4) & "," & str_list(5) & "}"
Return "{" & data & "}"
Return New On3dPoint(str_list(0), str_list(1), str_list(2))
A[] = [1,2,3,4,5,6]
A[] = [1,2,3]
B[] = [4,5,6]
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