예제 #1
0
        private void GetForces()
        {
            try
            {
                ErrorMessage = "";
                FrameDataExtractor       mde    = new FrameDataExtractor();
                FrameEnvelopeForceResult result = mde.GetFrameForces(SelectedGroup, SelectedCombo, "kip_in");
                V_major_max = result.ShearMajorMax;
                V_major_min = result.ShearMajorMin;
                M_major_max = result.MomentMajorMax;
                M_major_min = result.MomentMajorMin;
                P_max       = result.AxialForceMax;
                P_min       = result.AxialForceMin;

                V_minor_max = result.ShearMinorMax;
                V_minor_min = result.ShearMinorMin;
                M_minor_max = result.MomentMinorMax;
                M_minor_min = result.MomentMinorMin;


                P_abs       = Math.Max(Math.Abs(P_max), Math.Abs(P_min));
                M_major_abs = Math.Max(Math.Abs(M_major_max), Math.Abs(M_major_min));
                M_minor_abs = Math.Max(Math.Abs(M_minor_max), Math.Abs(M_minor_min));

                V_major_abs = Math.Max(Math.Abs(V_major_max), Math.Abs(V_major_min));
                V_minor_abs = Math.Max(Math.Abs(V_minor_max), Math.Abs(V_minor_min));
            }
            catch (Exception)
            {
                SetDefaultParameters();
                ErrorMessage = "Data extraction failed. Either ETABS is not running, or results are unavailable for selected Group/Combo.";
            }
        }
        private void GetForces()
        {
            try
            {
                ErrorMessage = "";
                FrameDataExtractor mde = new FrameDataExtractor();
                //bool SpecifyStation, double StationRatio

                FrameEnvelopeForceResult result = mde.GetSelectedFrameForces(SelectedCombo, "kip_in", SpecifyStation, StationRatio);


                V_major_max = result.ShearMajorMax;
                V_major_min = result.ShearMajorMin;
                M_major_max = result.MomentMajorMax;
                M_major_min = result.MomentMajorMin;
                P_max       = result.AxialForceMax;
                P_min       = result.AxialForceMin;
                V_minor_max = result.ShearMinorMax;
                V_minor_min = result.ShearMinorMin;
                M_minor_max = result.MomentMinorMax;
                M_minor_min = result.MomentMinorMin;
            }
            catch (Exception)
            {
                //SetDefaultParameters();
                ErrorMessage = "Data extraction failed. Either ETABS is not running, or results are unavailable for selected Combo.";
            }
        }
        public FrameEnvelopeReactionResult GetFrameReactions(string GroupName, string ComboName, ModelUnits ModelUnits)
        {
            //FrameForceExtractor ext = new FrameForceExtractor(model);
            //FrameEnvelopeReactionResult res = ext.GetFrameReactions(GroupName, ComboName, ModelUnits);
            FrameDataExtractor          ext = new FrameDataExtractor();
            FrameEnvelopeReactionResult res = ext.GetFrameReactions(GroupName, ComboName, ModelUnits.ToString());

            return(res);
        }
 private void GetReactions()
 {
     try
     {
         ErrorMessage = "";
         FrameDataExtractor          mde    = new FrameDataExtractor();
         FrameEnvelopeReactionResult result = mde.GetSelectedFrameReactions(SelectedCombo, "kip_in");
         V_major_left  = result.ShearMajorStart;
         V_major_right = result.ShearMajorEnd;
         M_major_left  = result.MomentMajorStart;
         M_major_right = result.MomentMajorEnd;
         P_left        = result.AxialForceStart;
         P_right       = result.AxialForceEnd;
         V_minor_left  = result.ShearMinorStart;
         V_minor_right = result.ShearMinorEnd;
         M_minor_left  = result.MomentMinorStart;
         M_minor_right = result.MomentMinorEnd;
     }
     catch (Exception)
     {
         SetDefaultParameters();
         ErrorMessage = "Data extraction failed. Either ETABS is not running, or results are unavailable for selected Combo.";
     }
 }