/***************************************************/ public static List <Plane> PanelPlanes(this Ceiling ceiling) { List <Plane> result = new List <Plane>(); foreach (Reference reference in HostObjectUtils.GetBottomFaces(ceiling)) { PlanarFace pf = ceiling.GetGeometryObjectFromReference(reference) as PlanarFace; if (pf != null) { result.Add(Plane.CreateByNormalAndOrigin(pf.FaceNormal, pf.Origin)); } } return(result); }
/***************************************************/ public static List <Face> LinkPanelFaces(this Ceiling ceiling, RevitSettings settings) { List <Face> result = new List <Face>(); foreach (Reference reference in HostObjectUtils.GetBottomFaces(ceiling)) { PlanarFace pf = ceiling.GetGeometryObjectFromReference(reference) as PlanarFace; if (pf != null) { result.Add(pf); } } return(result); }