示例#1
0
        public override SAPSection GetAssumedSection()
        {
            ISectionAssumption previous = new ISectionAssumption(Height, BotFlangeWidth, BotFlangeThickness, WebThickness);
            ISectionAssumption next     = ISectionAssumption.GetNextAssumption(previous);

            StringBuilder nameStr = new StringBuilder();

            nameStr.Append("I ");
            nameStr.Append(next.Height * 100);
            nameStr.Append("x");
            nameStr.Append(next.WebThickness * 100);

            nameStr.Append("/");
            nameStr.Append(next.TopFlangeWidth * 100);
            nameStr.Append("x");
            nameStr.Append(next.TopFlangeThickness * 100);
            nameStr.Append("/");
            nameStr.Append(next.BotFlangeWidth * 100);
            nameStr.Append("x");
            nameStr.Append(next.BotFlangeThickness * 100);
            if (next == null)
            {
                return(null);
            }

            SAPISection sec = new SAPISection(nameStr.ToString(), WebMaterial, TopFlangeMaterial, BotFlangeMaterial
                                              , next.Height, next.TopFlangeWidth, next.TopFlangeThickness, next.BotFlangeWidth, next.BotFlangeThickness, next.WebThickness);

            return(sec);
        }
示例#2
0
        public override SAPSection GetInitialSection(SAPMaterial mat)
        {
            ISectionAssumption assumption = ISectionAssumption.GetInitialSection();

            StringBuilder nameStr = new StringBuilder();

            nameStr.Append("I ");
            nameStr.Append(assumption.Height * 100);
            nameStr.Append("x");
            nameStr.Append(assumption.WebThickness * 100);

            nameStr.Append("/");
            nameStr.Append(assumption.TopFlangeWidth * 100);
            nameStr.Append("x");
            nameStr.Append(assumption.TopFlangeThickness * 100);
            nameStr.Append("/");
            nameStr.Append(assumption.BotFlangeWidth * 100);
            nameStr.Append("x");
            nameStr.Append(assumption.BotFlangeThickness * 100);
            if (assumption == null)
            {
                return(null);
            }
            SAPISection sec = new SAPISection(nameStr.ToString(), mat, mat, mat
                                              , assumption.Height, assumption.TopFlangeWidth, assumption.TopFlangeThickness, assumption.BotFlangeWidth, assumption.BotFlangeThickness, assumption.WebThickness);

            return(sec);
        }
示例#3
0
        internal static SAPISection GetAssumedEndTaperSection(SAPISection startSection)
        {
            ISectionAssumption previous = new ISectionAssumption(startSection.Height, startSection.BotFlangeWidth, startSection.BotFlangeThickness, startSection.WebThickness);
            ISectionAssumption next     = ISectionAssumption.GetNextEndTaperAssumption(previous);

            StringBuilder nameStr = new StringBuilder();

            nameStr.Append("I ");
            nameStr.Append(next.Height * 100);
            nameStr.Append("x");
            nameStr.Append(next.WebThickness * 100);

            nameStr.Append("/");
            nameStr.Append(next.TopFlangeWidth * 100);
            nameStr.Append("x");
            nameStr.Append(next.TopFlangeThickness * 100);
            nameStr.Append("/");
            nameStr.Append(next.BotFlangeWidth * 100);
            nameStr.Append("x");
            nameStr.Append(next.BotFlangeThickness * 100);
            if (next == null)
            {
                return(null);
            }

            SAPISection sec = new SAPISection(nameStr.ToString(), startSection.WebMaterial, startSection.TopFlangeMaterial, startSection.BotFlangeMaterial
                                              , next.Height, next.TopFlangeWidth, next.TopFlangeThickness, next.BotFlangeWidth, next.BotFlangeThickness, next.WebThickness);

            return(sec);
        }