Creation of section boxes from multiple objects

Hi!

I need to be able to isolate walls through section boxes that keep the elements contained in it, just like that. A 3D view must be created for each section box. Is there a script that allows you to obtain this?

Thank you!