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); }
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); }
/// <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); }