コード例 #1
0
        public List <FrameEnvelopeReactionResult> GetFrameReactions(List <string> FrameNames, string GroupNamePrefix, string ComboName, ModelUnits ModelUnits)
        {
            //Set Units
            switch (ModelUnits)
            {
            case ModelUnits.kip_in:

                EtabsModel.SetPresentUnits(eUnits.kip_in_F);
                break;

            case ModelUnits.kip_ft:
                EtabsModel.SetPresentUnits(eUnits.kip_ft_F);
                break;

            default:
                EtabsModel.SetPresentUnits(eUnits.kip_in_F);
                break;
            }
            List <FrameEnvelopeReactionResult> frameForceResult = new List <FrameEnvelopeReactionResult>();

            List <GroupData> GroupData = ExtractGroupNames(FrameNames, GroupNamePrefix);

            if (GroupData != null)
            {
                foreach (var g in GroupData)
                {
                    FrameReactionResult         thisGroupResult         = GetEnvelopeReactionResultForMultipleFrames(g.Elements, ComboName);
                    FrameEnvelopeReactionResult thisGroupEnvelopeResult = new FrameEnvelopeReactionResult(g.Name, thisGroupResult);
                    frameForceResult.Add(thisGroupEnvelopeResult);
                }
            }
            return(frameForceResult);
        }
コード例 #2
0
        public FrameEnvelopeReactionResult GetFrameReactions(List <string> FrameNames, string ComboName, ModelUnits ModelUnits)
        {
            //Set Units
            switch (ModelUnits)
            {
            case ModelUnits.kip_in:

                EtabsModel.SetPresentUnits(eUnits.kip_in_F);
                break;

            case ModelUnits.kip_ft:
                EtabsModel.SetPresentUnits(eUnits.kip_ft_F);
                break;

            default:
                EtabsModel.SetPresentUnits(eUnits.kip_in_F);
                break;
            }


            FrameReactionResult         thisSelectionResult         = GetEnvelopeReactionResultForMultipleFrames(FrameNames, ComboName);
            FrameEnvelopeReactionResult thisSelectionEnvelopeResult = new FrameEnvelopeReactionResult(null, thisSelectionResult);

            return(thisSelectionEnvelopeResult);
        }
コード例 #3
0
        public FrameEnvelopeReactionResult GetFrameReactions(string GroupName, string ComboName, ModelUnits ModelUnits)
        {
            //Set Units
            switch (ModelUnits)
            {
            case ModelUnits.kip_in:

                EtabsModel.SetPresentUnits(eUnits.kip_in_F);
                break;

            case ModelUnits.kip_ft:
                EtabsModel.SetPresentUnits(eUnits.kip_ft_F);
                break;

            default:
                EtabsModel.SetPresentUnits(eUnits.kip_in_F);
                break;
            }
            List <FrameEnvelopeReactionResult> frameForceResult = new List <FrameEnvelopeReactionResult>();

            GroupManager gm = new GroupManager(EtabsModel);
            GroupData    d  = gm.GetGroupDataForFrames(GroupName);

            FrameReactionResult         thisGroupResult         = GetEnvelopeReactionResultForMultipleFrames(d.Elements, ComboName);
            FrameEnvelopeReactionResult thisGroupEnvelopeResult = new FrameEnvelopeReactionResult(d.Name, thisGroupResult);


            return(thisGroupEnvelopeResult);
        }