Not able to create filled regions from room boundary

As part of Structural documents, we have to generate loading plans based on the architectural usage of the space. To generate this loading plans, I tried to create filled regions from Room boundaries. There are couple of filled regions are created but not all of them Some of them are getting error. Please see the attached images and Dynamo script for reference. Filled Region from Room |468x500. As you can see in the picture, couple of filled regions created and other room boundaries are not being extracted properly. Also the extracted filled regions are rotated from the location of Linked Architectural model.
Loading Plans from Linked Arch Rooms with single hatch_New.dyn (82.2 KB)

Could anyone help us to sort it out

Can you share a screenshot of the graph in action, with node preview bubbles pinned and any error messages you’re getting? Do you have rooms with internal boundary loops? Do you have unplaced rooms?

You’ll have to get the link’s transform and apply that to your rooms to get them aligned.

Thank you @Nick_Boyts for prompt responds.
Please see the image of script and the error message


Thanks, but unfortunately the node titles aren’t visible in your screenshot and we can’t see any of the data in your nodes since there are no preview bubbles. So we really can’t see what’s going on. Try taking another screenshot with the Export Workspace button while you’re zoomed in on the graph.