Hello world. Can you help me to Cut all walls along their axis when they intersect with other walls with dynamo

Hello world. Can you help me to Cut all walls along their axis when they intersect with other walls with dynamo.

Like this image (left to rigth)

Thanks a lot

I would start here as the members of the forum will typically want to address specific issues with the current state of your graph.