示例#1
0
        public static IfcQuantityLength GetTotalHeightProperty(this IfcBuildingStorey buildingStorey)
        {
            var qLen = buildingStorey.GetQuantity <IfcQuantityLength>("BaseQuantities", "TotalHeight");

            if (qLen == null)
            {
                qLen = buildingStorey.GetQuantity <IfcQuantityLength>("TotalHeight");              //just look for any height
            }
            return(qLen);
        }
示例#2
0
        public static IfcLengthMeasure?GetTotalHeight(this IfcBuildingStorey buildingStorey)
        {
            IfcQuantityLength qLen = buildingStorey.GetQuantity <IfcQuantityLength>("BaseQuantities", "TotalHeight");

            if (qLen == null)
            {
                qLen = buildingStorey.GetQuantity <IfcQuantityLength>("TotalHeight");              //just look for any height
            }
            if (qLen != null)
            {
                return(qLen.LengthValue);
            }
            return(null);
        }
示例#3
0
        /// <summary>
        /// Returns the Gross Floor Area, if the element base quantity GrossFloorArea is defined
        /// </summary>
        /// <param name="buildingStorey"></param>
        /// <returns></returns>
        public static IfcAreaMeasure?GetGrossFloorArea(this IfcBuildingStorey buildingStorey)
        {
            IfcQuantityArea qArea = buildingStorey.GetQuantity <IfcQuantityArea>("BaseQuantities", "GrossFloorArea");

            if (qArea == null)
            {
                qArea = buildingStorey.GetQuantity <IfcQuantityArea>("GrossFloorArea");               //just look for any area
            }
            if (qArea != null)
            {
                return(qArea.AreaValue);
            }
            return(null);
        }