Divide Floors in Parts

Thanks for your reply!! I am trying to divide floor parts for multiple floors, so I try to change the other script that works for lists but failed. Therefore, I come across your post and try a simple script that only contains one curve but also failed. I have no idea what I do wrong. Here is my simple one:


and here is the one that I am working on:

I am trying to divide floors into parts by using wall location lines, and the script I only change Dividing parts with dynamo wall reference into floor and it does not work…

Thanks for taking time to read my post, I am struggling for days already.