I’ve checked your script…the approach is valid but your are making it more complicated… i do not know whats your end goal in doing this but i assumed two things :
-
if you are seeking only to get the perimeter of each room with the doors subtracted then you can do this like @rexfrancojesse proposed… but use the room boundary instead of
Get Host Element
because get host would only calculate the walls which host doors and ignore the others…
-
if you want to get these base lines as dynamo elements and use them for further development then you can do this
i hope this helps