I’ve searched the forum to no avail (Albeit I could be looking for the wrong thing). I’m trying to figure out how to chop up a list based off a Z-value. I’ve tried playing with SortByKey and Point.Z to limited success so far.
Simply, the issue is I want to take the points of a topography in Revit, use Point.Add to project it up the Z-Axis a certain amount, sort the points based off Z-Value, create nurbs curves through said points at each ‘contour level’, and then create a new polysurface by lofting those curves.
I’m a little stuck as to how to cut my list up based off Z-values however. Where I have got to so far is shown below. Any help would be greatly appreciated!