protected void Btn_SAPAnalyzeDesign_Click(object sender, EventArgs e)
        {
            SAPAnalysisModel model;

            switch (code)
            {
            case DesignCodeEnum.ECP:
                model = new SAPAnalysisModel();
                model.GenerateFrame(finalFrame, finalFrame.Name, false, true);
                if (finalFrame is HndzFrameSingleBay3D)
                {
                    HndzFrameSingleBay3D frameE = finalFrame as HndzFrameSingleBay3D;
                    HndzDesigner.AssembleSections(frameE);
                }       // rebind grid view to new analysis results
                break;

            case DesignCodeEnum.AISC:
                model = new SAPAnalysisModel();
                model.GenerateFrame(finalFrame, finalFrame.Name, true, true);
                break;

            default:
                break;
            }
            SaveFrameChanges();
            CreateBIMModel();
            // rebind grid view to new analysis results
            //HndzFrameSingleBay3D frame = finalFrame as HndzFrameSingleBay3D;
            //Grd_DesignSummary.DataSource = frame.Frames2D;
            //Grd_DesignSummary.DataBind();
            Grd_DesignSummary.DataSource = ElementLoadsGridView();
            Grd_DesignSummary.DataBind();
            Grd_SectionSummary.DataSource = LoadSections();
            Grd_SectionSummary.DataBind();
        }
        protected void Btn_SapAnalyze_Click(object sender, EventArgs e)
        {
            #region Analysis Model and Straining Actions and Design by SAP2000
            SAPAnalysisModel model = new SAPAnalysisModel();
            model.GenerateFrame(finalFrame, finalFrame.Name, false, true);
            #endregion

            SaveFrameChanges();
            Grd_DesignSummary.DataSource = ElementLoadsGridView();
            Grd_DesignSummary.DataBind();
            Grd_SectionSummary.DataSource = LoadSections();
            Grd_SectionSummary.DataBind();

            CreateBIMModel();
            //TODO: Use SAP Analysis
            //TODO: Save the model path and keep it in cookies
            Btn_Sap2000_Down.Visible = true;

            //========================
            // rebind grid view to new analysis results
            //HndzFrameSingleBay3D frame = finalFrame as HndzFrameSingleBay3D;
            //Grd_DesignSummary.DataSource = frame.Frames2D;
            //Grd_DesignSummary.DataBind();
        }