I have code I wrote in Excel VBA - while I used Rhino5 - that converts curve coordinates downloaded from Grasshopper into g-code.
I extracted the curves’ co-ordinates by first deconstructing then constructing the points collection and passing these into a panel. Theareafter, I right clicked the panel and selected “Copy all content”.
Pasted into Excel, these contained delimiters that allowed my code know when to transfer to another curve (the field colored green in the attachment)
I revisited this effort yesterday - in Rhino6 - and those curve delimiters are no longer there when I download point coordinates from Grasshopper! I only now have a single column headed with {0} when I paste into Excel.
Does anyone know how to include them please? I hope the attachment further clarifies.
I suspect it is the latter - the way I structured and extracted the data in Grasshopper. I cannot remember the specifics of the original effort much. I scripted in the Excel VBA environment.
How did you generate the points already in the file? This script recreates them from each line’s segments but misses ~5 pts that were already in there.
It is 1/4 of the corner designs in a frame. I created it in Rhino.
Thereafter, I converted the curves to lines (Curve - Convert - Curves to Lines) then I extracted the points (Curve - Curve from objects - Extract points).
When you referenced the points directly, grasshopper operated on them all as one list with no heirarchy ( {0} ).
All I did was reference the lines instead ( our new {0} ) and then extract the points from them with Discontinuity. Since that component outputs lists, it structured the data as a “list of lists,” with one list for each curve. So we get {0; N} where N refers to the item in {0} that it operated on.
Overkill level of a detailed explanation by David here.