Beispiel #1
0
        public static TBD.SizingType ToTAS(this BHP.SizingMethod sizingMethod)
        {
            TBD.SizingType tbdSizingType = new TBD.SizingType();

            switch (sizingMethod)
            {
            case BHP.SizingMethod.NoSizing:
                tbdSizingType = TBD.SizingType.tbdNoSizing;
                break;

            case BHP.SizingMethod.DesignSizingOnly:
                tbdSizingType = TBD.SizingType.tbdDesignSizingOnly;
                break;

            case BHP.SizingMethod.Sizing:
                tbdSizingType = TBD.SizingType.tbdSizing;
                break;

            case BHP.SizingMethod.Mixed:
                tbdSizingType = TBD.SizingType.tbdMixed;
                break;

            case BHP.SizingMethod.LoadPerArea:
                tbdSizingType = TBD.SizingType.tbdLoadPerArea;
                break;

            default:
                tbdSizingType = TBD.SizingType.tbdSizing;
                break;
            }

            return(tbdSizingType);
        }
Beispiel #2
0
        public static BHP.SizingMethod FromTAS(this TBD.SizingType sizingType)
        {
            if (sizingType.Equals(0))
            {
                return(BHP.SizingMethod.NoSizing);
            }
            if (sizingType.Equals(1))
            {
                return(BHP.SizingMethod.DesignSizingOnly);
            }
            if (sizingType.Equals(2))
            {
                return(BHP.SizingMethod.Sizing);
            }
            if (sizingType.Equals(3))
            {
                return(BHP.SizingMethod.Mixed);
            }
            if (sizingType.Equals(4))
            {
                return(BHP.SizingMethod.LoadPerArea);
            }

            return(BHP.SizingMethod.Undefined);
        }