예제 #1
0
        private void AddBraceSection(ICollection <StbSecBrace_S> secBrace_S, K2SSecSteelItems secSteel, int croSecId, int vNum)
        {
            secBrace_S.Add(K2StbSections.BraceSteel(croSecId, vNum, _kModel));
            _registeredCroSecId[2].Add(croSecId);

            if (_registeredCroSecName[2].IndexOf(_kModel.crosecs[croSecId].name) < 0)
            {
                K2StbSecSteel.GetSection(ref secSteel, _kModel, croSecId);
                _registeredCroSecName[2].Add(_kModel.crosecs[croSecId].name);
            }
        }
예제 #2
0
        private void AddColumnSection(ICollection <StbSecColumn_S> secColumns_S, ICollection <StbSecColumn_RC> secColumns_RC, K2SSecSteelItems secSteel, StbColumnKind_structure kind, int croSecId, int cNum)
        {
            switch (kind)
            {
            case StbColumnKind_structure.S:
                secColumns_S.Add(K2StbSections.ColumnSteel(croSecId, cNum, _kModel));

                if (_registeredCroSecName[0].IndexOf(_kModel.crosecs[croSecId].name) < 0)
                {
                    K2StbSecSteel.GetSection(ref secSteel, _kModel, croSecId);
                    _registeredCroSecName[0].Add(_kModel.crosecs[croSecId].name);
                }
                break;

            case StbColumnKind_structure.RC:
                secColumns_RC.Add(K2StbSections.ColumnRc(croSecId, cNum, _kModel));
                break;

            default:
                throw new ArgumentException("Make sure that the family name of the material is \"Concrete\" or \"Steel\".");
            }
            _registeredCroSecId[0].Add(croSecId);
        }