Hi all.
I'm using the new DIVA plug-in which connect Rhino to Radiance. The plug-in give me a .dat file wich contains all the values of the node. I was able to read the external file in GH and show it through a panel, give the right order to the grid point of nodes, but I really cannot split each single string in the values I need.
Every string is composed by: x y z coordinates, normal vector, three values (in that case the Daylight factor).
I have to write a Vb script, but I have no idea how to do this.
The metacode should be:
- read every line
- the first three values = x,y,z ---> define point
- second three = i, j, k -----> define normal vector
- third three values = keep one as number
I searched things like "split string VbScript", but I cannot really find a solution.
Please, help.