Split Line with polygon

Im trying to split/trim a group of lines on the inside of a polygon ?

I’ve tried Shatter, but it only breaks all the lines into individual lines.

Apprecieate any Help in advance

PLD_Shed_Wall.gh (22.9 KB)

Thank you

Is it possible to have more than 1 rectangle ? I’ve just been adding them in series but it becomes cumbersome ?

Thanks in advance for any help.

Provide an updated file?

PLD_Shed_Wall (Question2).gh (22.5 KB)
Volker,

These are windows in a wall so I’d like to be have upto maybe 20 windows, but at the moment I was going to limit it to say 6. Ideally I’d like to be able to just pick a point in Rhino and be prompted for the window size, but thats another question again.

Thank you for your time.

Greg