Esempio n. 1
0
        public List <Element> GetMullions()
        {
            var mullionIds  = InternalCurtainGrid.GetMullionIds();
            var mullionEnum = mullionIds.GetEnumerator();
            var mullions    = new List <Element>();

            for (; mullionEnum.MoveNext();)
            {
                ElementId idMullion = mullionEnum.Current;
                var       mullion   = DocumentManager.Instance.CurrentDBDocument.GetElement(idMullion);
                mullions.Add(Mullion.FromExisting(mullion as Autodesk.Revit.DB.Mullion, true));
            }
            return(mullions);
        }
Esempio n. 2
0
        /// <summary>
        ///get all mullions of curtain wall, system or slope galzing roof
        /// </summary>
        /// <param name="hostingElement"></param>
        public static Mullion[] ByElement(Element hostingElement)
        {
            CurtainGridSet thisSet = CurtainGrid.AllCurtainGrids(hostingElement.InternalElement);
            var            result  = new List <Mullion>();

            var enumGrid = thisSet.GetEnumerator();

            for (; enumGrid.MoveNext();)
            {
                var grid   = (Autodesk.Revit.DB.CurtainGrid)enumGrid.Current;
                var ids    = grid.GetMullionIds();
                var idEnum = ids.GetEnumerator();
                for (; idEnum.MoveNext();)
                {
                    var idMullion = idEnum.Current;
                    var mullion   = DocumentManager.Instance.CurrentDBDocument.GetElement(idMullion);
                    result.Add(Mullion.FromExisting(mullion as Autodesk.Revit.DB.Mullion, true));
                }
            }
            return(result.ToArray());
        }
Esempio n. 3
0
 public static Mullion Wrap(Autodesk.Revit.DB.Mullion ele, bool isRevitOwned)
 {
     return(Mullion.FromExisting(ele, isRevitOwned));
 }