Esempio n. 1
0
        public FrameEnvelopeForceResult GetFrameForcesAtStationRatio(List <string> FrameNames, string ComboName, ModelUnits ModelUnits, double StationRatio)
        {
            //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;
            }


            FrameForceResult         thisSelectionResult         = GetEnvelopeForceResultForMultipleFrames(FrameNames, ComboName, StationRatio);
            FrameEnvelopeForceResult thisSelectionEnvelopeResult = new FrameEnvelopeForceResult(null, thisSelectionResult);

            return(thisSelectionEnvelopeResult);
        }
Esempio n. 2
0
        public FrameEnvelopeForceResult GetFrameForces(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);

            FrameForceResult         thisSelectionResult         = GetEnvelopeForceResultForMultipleFrames(d.Elements, ComboName);
            FrameEnvelopeForceResult thisSelectionEnvelopeResult = new FrameEnvelopeForceResult(null, thisSelectionResult);

            return(thisSelectionEnvelopeResult);
        }