Beispiel #1
0
        /***************************************************/

        public static List <Plane> PanelPlanes(this RoofBase roof)
        {
            List <Plane> result = new List <Plane>();

            foreach (Reference reference in HostObjectUtils.GetTopFaces(roof))
            {
                PlanarFace pf = roof.GetGeometryObjectFromReference(reference) as PlanarFace;
                if (pf != null)
                {
                    result.Add(Plane.CreateByNormalAndOrigin(pf.FaceNormal, pf.Origin));
                }
            }

            return(result);
        }
        /***************************************************/

        public static List <Face> LinkPanelFaces(this RoofBase roof, RevitSettings settings)
        {
            List <Face> result = new List <Face>();

            foreach (Reference reference in HostObjectUtils.GetTopFaces(roof))
            {
                PlanarFace pf = roof.GetGeometryObjectFromReference(reference) as PlanarFace;
                if (pf != null)
                {
                    result.Add(pf);
                }
            }

            return(result);
        }