Пример #1
0
        internal static IEnumerable <GH_String> GetWallRcSection(StbSecWall_RC_Straight figure, string strength)
        {
            var ghSecString = new GH_Structure <GH_String>();

            ghSecString.Append(new GH_String("t=" + figure.t + "(" + strength + ")"));

            return(ghSecString);
        }
Пример #2
0
        private static GH_Structure <GH_String> GetTagStrings(IEnumerable <StbWall> walls, StbSections sections)
        {
            var ghSecStrings = new GH_Structure <GH_String>();

            foreach (var item in walls.Select((wall, index) => new { wall, index }))
            {
                string secId  = item.wall.id_section;
                var    ghPath = new GH_Path(0, item.index);

                StbSecWall_RC          secRc  = sections.StbSecWall_RC.First(i => i.id == secId);
                StbSecWall_RC_Straight figure = secRc.StbSecFigureWall_RC.StbSecWall_RC_Straight;
                ghSecStrings.AppendRange(TagUtils.GetWallRcSection(figure, secRc.strength_concrete), ghPath);
            }

            return(ghSecStrings);
        }