revit-apirevitrevit-2015

Determining adjacent wall using Revit API


I have couple of walls in a project. I want to find out which walls are adjacent to each other.


Solution

  • If the adjacent walls all meet at their respective endpoints, the LocationCurve.ElementsAtJoin property will give you exactly what you are asking for.

    Unfortunately, it will not help in the case where the adjacent walls intersect each another in non-endpoints, e.g., at their midpoints or somewhere else along their location curves except the endpoints.