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.
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 ] 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).