Use python to break ducts and pipes

Hello everyone,
I am trying to write a python script to cut ducts and pipes on specific points.
I used BreakCurve but it keeps generating an error “the given point is not on duct curve” knowing that the points are intersections of ducts vs walls (or pipes vs walls).
Eventhough the points should be on the curve, I even tried to project these points on pipe and duct curves and I still face the same error.
Any advice?

Hi @tarek.mallak,

There is a Split ByPoints node in the Genius Loci package that you might find useful for this task.

1 Like

Thanks a lot!
Works the same way as my script but with no errors :stuck_out_tongue: