Subdividing Floor Boundries by Curves

I’m trying to Split a Floor into two or more separate floors using lines drawn by the user.

I extract the existing floor boundaries and merge it with the separator line(s) and do a intersect all and get the points with the points I separate the lines into new lines (, I tried offset the separator lines and delete the smallest line to get two separate loops. But its not working.) and delete these lines.