Create a border with a gridsystem inside

Hi!

Right now I have a dynamo script where lines are offset and projected onto a roof surface. Those are then converted to beams.

But I get a problem where the beams are going through the outer walls, does anyone have a bright idea how one might be able to fix it?

Would be neat to draw the outer lines of the building and tell the beams to stop at those intersections instead of going all the way allong the roof surface.

This thread could interest you: