Linked Model Room Finish Boundary

Ran into an issue with retrieving the room boundary from a linked file.
I get the “asked to convert non convertible types” warning on Line.Direction.
I’ve tried filtering down the list with a bool mask for null values, but it wound up having the same warning.

Any tips or advice?
Thanks!

Hello @ReX and welcome

You have 1020 rooms from a arch model…maybe some of them is not valid, bounded, placed etc..guess its worth to check

1 Like

Unplaced rooms have an area of 0 and null Location, you could filter on either, the boundary will be an empty list.

Room boundaries can include Arc curves [Architects :roll_eyes:] which is probably your issue - use a Curve.TangentAtParameter node to overcome. Default is 0 which is the start of the curve, you might want to use 0.5 depending on your use case

I like filtering to only keep rooms with an area >0 as this removes unplaced rooms (no area, no location), unbound rooms (no area, have location), and duplicate rooms (no area, have location).

Cleaning up the model is always best though.

1 Like