How could I make my wall finish script cut through the openings and make applicable to multiple rooms?

Hello, all! :slight_smile: :wave:

I am a beginner in Dynamo, therefore I was following on YouTube a tutorial of how to add wall finishes in room (Wall Finish in one click with Dynamo l Detailed Explanation - YouTube).

I could make a functioning script, but when I applied it to my project I saw that it does not cut through door and window openings, as well, I can apply the script only to one room.

Do you know what type of adjustments I could make to the script:

  1. To apply it to multiple rooms?
  2. For it to cut through window and door openings?

Here you can find my script:
Wall finish_exam.dyn (57.4 KB)

Just join the finish and the wall