@leah.milekic wrote:
Hi,
I’m trying to get Rhino to import a txt data and then connect points with either a Line, Polyline, curve or Spline, based on a code number that is in the data.
I have sucessful import etc, however the result is that my code just connects a couple of points correctly bu then the rest not at all and the points for a spline are not connected properly.I think it is a problem to do with how the data is getting sorted and put into a list.
I’m now trying to come at it from a different angle and sort the data into Arrays before hand and then just reference the parts of the arrays that I want to use, but this is where I’m stuck and wondering if I need to do that at all.
My current script is attached (please excuse the German/english mix, the function has to run in German when it’s complete).
My script:
Codiertes Koordinaten Einlesen_leah.py (4.4 KB)
My test data:
Column 1: Point number
Column 2: X coordinate
Column 3: Y coordinate
Column 4: Z coordinate
Column 5: Code ( the first digit determines the line type.
Column 6: Zeros339-17.txt (2.5 KB)SKOMI-E0818091712000.pdf (272.7 KB)
Posts: 1
Participants: 1