Creating space separator

I use the following code to create spaces depending on the parts of a related model.
My problem is that the model comes from IFC conversion is that the parts are not closed.
In the model architect, I create room dividers.
Unfortunately, creating spaces with dynamo does not work because it does not take into account the room dividers.

Fixed post.

Is it possible to create the space separator with dynamo?.
(Copy the separators of the rooms)

Well, you can bound rooms by using Room Separation Lines while Spaces are bound with Space Separation Lines. This is specifically designed like that so you can have Spaces bound around multiple rooms. It’s not a surprise to me that Room Separation Lines don’t affect your Spaces - its meant to be like that.