Hey,
I would like to find the room (id) next to/closest to a curtain wall (or vice versa).
Using room.GetBoundarySegments I was able to find the neighbours (and therefore the wall (id)) of regular walls that are neighbouring a room.
"GetBoundarySegments" does not return boundary segments of curtain walls or any other room bounding objects however.
Does anyone know how to do this?
Code:
IList<IList<BoundarySegment>> boundaries = roomElement.GetBoundarySegments(new SpatialElementBoundaryOptions());
// Loop boundaries
foreach (IList<BoundarySegment> b in boundaries)
{
// Loop boundary segment
foreach (BoundarySegment s in b)
{
// Get element
Element neighbour = roomElement.Document.GetElement(s.ElementId);
}
}