Solid Union by each specific objects

Hi, I’m trying to make a rectangular frame from the 10x10m box. I did it from box to 5x5m frames but I want to do boolean union frames by each boxes. not every frame to 1 objects. Is there any solutions?

Frame generator (8.7 KB)

If I do flatten from bounding box componet, It works like all the frame to one object and also it takes so long time. I need to do this algorithm for 10k boxes for the urban scale projects…I think it is better to make a frame by each boxes