Sort 3D lines so they can be joined eventualluy

thanks jacob, works great except missing short line(s), i changed one short line from 1’ 6” to 2 3/4” in line.rvt file, i looked at your code, seems not tolerance issue

Was that on the Python method? All curves were maintained in my testing of that node… :thinking:

PolyCurve.ByGroupedCurves works OK, but joinTolerance needs to be manually adjusted

try to make one of your original lines very short, in my case 2 3/4”, total curves should be 7 instead of 6

So this differs from the file you posted above? and using the Python solution?

right

Ah - the sort is killing you at a certain point. I’ll try to build another method for you.

If you return the connected polycuve instead of the sorting (see the comments in the code) you’ll get a single chain with that line included even if you make it 1/32" (the smallest dimension reasonable in 3D geometry - 0.0026 feet).

@ning.zhouHNQLJ I updated the python above to deal with minimally long curves (1/32" tested").

2 Likes

thanks jacob, works great!

1 Like