Script advice?

 From:  Frenchy Pilou (PILOU)
965.18 In reply to 965.17 
A simple Boolean Diff Box don't make the trick ?
so here as you have a polyline...an extruded polyline ;)

EDITED: 15 Apr 2023 by PILOU