Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I've used this logic to get all walls of a room:
List<Wall> walls = new List<Wall>(); IList<IList<BoundarySegment>> boundaries = room.GetBoundarySegments(new SpatialElementBoundaryOptions()); foreach (IList<BoundarySegment> b in boundaries) { foreach (BoundarySegment s in b) { Element el = document.GetElement(s.ElementId); if (el is Wall) { Wall wall = el as Wall; walls.Add(wall); } } }
However, some walls are longer than edge of the room as this photo
Basically, 1 part is a wall of the Resi Trash - 158 room (blue border).
So, I want to get the 1a part (red border) which has located inside the room and getting the center point of the 1a part.
Thanks,
Solved! Go to Solution.