コード例 #1
0
        private void frmTempLoad_Load(object sender, EventArgs e)
        {
            if (ASTRA_Data.Count > 0)
            {
                string kStr = ASTRA_Data[0];

                MyStrings mlist = new MyStrings(MyStrings.RemoveAllSpaces(kStr), ' ');

                int r = -1;
                for (int i = 0; i < mlist.Count; i++)
                {
                    if (r == -1)
                    {
                        if (mlist.StringList[i] == "TEMP")
                        {
                            r = i;
                            txt_joint_number.Text = mlist.GetString(0, r - 1);
                            txt_init_temp.Text    = mlist.StringList[i + 1];
                            if (mlist.Count > (i + 2))
                            {
                                txt_final_temp.Text = mlist.StringList[i + 2];
                            }
                        }
                    }
                }

                btn_jload_add.Text = "Change";
                ASTRA_Data.Clear();
            }
            else
            {
                txt_joint_number.Text = iACad.GetSelectedJointsInText();
            }
        }
コード例 #2
0
        private void frmElementLoad_Load(object sender, EventArgs e)
        {
            if (ASTRA_Data.Count > 0)
            {
                string kStr = ASTRA_Data[0];

                MyStrings mlist = new MyStrings(MyStrings.RemoveAllSpaces(kStr), ' ');

                int r = -1;
                for (int i = 0; i < mlist.Count; i++)
                {
                    if (r == -1)
                    {
                        if (mlist.StringList[i] == "PRESSURE")
                        {
                            r                  = i;
                            txt_mnos.Text      = mlist.GetString(0, r - 1);
                            txt_aload_val.Text = mlist.StringList[i + 1];
                        }
                    }
                }


                btn_aload_add.Text = "Change";
                ASTRA_Data.Clear();
            }
            else
            {
                //txt_mnos.Text = iACad.GetSelectedMembersInText();
            }
        }
コード例 #3
0
        private void frmSupportDisplacements_Load(object sender, EventArgs e)
        {
            if (ASTRA_Data.Count > 0)
            {
                string kStr = ASTRA_Data[0];

                MyStrings mlist = new MyStrings(MyStrings.RemoveAllSpaces(kStr), ' ');

                int r = -1;
                for (int i = 0; i < mlist.Count; i++)
                {
                    if (r == -1)
                    {
                        if (mlist.StringList[i] == "FX" || mlist.StringList[i] == "FY" || mlist.StringList[i] == "FZ" ||
                            mlist.StringList[i] == "MX" || mlist.StringList[i] == "MY" || mlist.StringList[i] == "MZ")
                        {
                            r = i;
                        }
                    }

                    if (mlist.StringList[i] == "FX")
                    {
                        txt_fx.Text = mlist.StringList[i + 1];
                    }
                    else if (mlist.StringList[i] == "FY")
                    {
                        txt_fy.Text = mlist.StringList[i + 1];
                    }
                    else if (mlist.StringList[i] == "FZ")
                    {
                        txt_fz.Text = mlist.StringList[i + 1];
                    }
                    else if (mlist.StringList[i] == "MX")
                    {
                        txt_mx.Text = mlist.StringList[i + 1];
                    }
                    else if (mlist.StringList[i] == "MY")
                    {
                        txt_my.Text = mlist.StringList[i + 1];
                    }
                    else if (mlist.StringList[i] == "MZ")
                    {
                        txt_mz.Text = mlist.StringList[i + 1];
                    }
                }

                if (r != -1)
                {
                    txt_joint_number.Text = mlist.GetString(0, r - 1);
                }
                btn_jload_add.Text = "Change";
                ASTRA_Data.Clear();
            }
            else
            {
                txt_joint_number.Text = iACad.GetSelectedJointsInText();
            }
        }
コード例 #4
0
        private void frmJointWeight_Load(object sender, EventArgs e)
        {
            if (ASTRA_Data.Count > 0)
            {
                string kStr = ASTRA_Data[0];

                MyStrings mlist = new MyStrings(MyStrings.RemoveAllSpaces(kStr), ' ');

                int r = -1;
                for (int i = 0; i < mlist.Count; i++)
                {
                    if (r == -1)
                    {
                        if (mlist.StringList[i].StartsWith("WEI"))
                        {
                            r = i;
                        }
                    }
                    if (mlist.StringList[i].StartsWith("WEI"))
                    {
                        txt_fy.Text = mlist.StringList[i + 1];
                    }
                }

                if (r != -1)
                {
                    txt_joint_number.Text = mlist.GetString(0, r - 1);
                }
                btn_jload_add.Text = "Change";
                ASTRA_Data.Clear();

                this.Height       = 140;
                groupBox1.Visible = false;
            }
            else
            {
                txt_joint_number.Text = iACad.GetSelectedJointsInText();

                this.Height = 447;
            }
        }
コード例 #5
0
        private void frmSeismicLoad_Load(object sender, EventArgs e)
        {
            if (ASTRA_Data.Count > 0)
            {
                string kStr = ASTRA_Data[0];

                MyStrings mlist = new MyStrings(MyStrings.RemoveAllSpaces(kStr), ' ');

                int r = -1;
                for (int i = 0; i < mlist.Count; i++)
                {
                    if (r == -1)
                    {
                        if (mlist.StringList[i] == "FX" || mlist.StringList[i] == "FY" || mlist.StringList[i] == "FZ" ||
                            mlist.StringList[i] == "MX" || mlist.StringList[i] == "MY" || mlist.StringList[i] == "MZ")
                        {
                            r = i;
                        }
                    }

                    if (mlist.StringList[i] == "FX")
                    {
                        rbtn_fx_positive.Checked = true;
                    }
                    else if (mlist.StringList[i] == "FZ")
                    {
                        rbtn_fz_positive.Checked = true;
                    }
                }

                if (r != -1)
                {
                    txt_sc.Text = mlist.GetString(1, r - 1).Trim().TrimEnd().TrimStart();
                }
                btn_add.Text = "Change";
                ASTRA_Data.Clear();
            }
            //else
            //    txt_joint_number.Text = iACad.GetSelectedJointsInText();
        }
コード例 #6
0
        public void Update_Data(string UpdText)
        {
            if (TRV == null)
            {
                return;
            }
            List <List <int> > list1 = new List <List <int> >();

            List <int> mems    = new List <int>();
            List <int> Updmems = new List <int>();

            //string UpdText = "1 TO 10 PR YD 0.410 ZD 0.32";



            MyStrings mmls = new MyStrings(UpdText, ' ');

            int    intx = 0;
            string kStr = "";
            string PR   = "";

            for (intx = 0; intx < mmls.Count; intx++)
            {
                if (mmls.StringList[intx].StartsWith("PR"))
                {
                    kStr = mmls.GetString(0, intx - 1);
                    PR   = mmls.GetString(intx);
                    break;
                }
            }
            Updmems = MyStrings.Get_Array_Intiger(kStr);
            string PR_Upd = PR;


            for (int i = 0; i < TRV.Nodes.Count; i++)
            {
                //mems = MyStrings.Get_Array_Intiger(TRV.Nodes[i].Text);

                mmls = new MyStrings(TRV.Nodes[i].Text, ' ');

                intx = 0;
                kStr = "";
                PR   = "";
                for (intx = 0; intx < mmls.Count; intx++)
                {
                    if (mmls.StringList[intx].StartsWith("PR"))
                    {
                        kStr = mmls.GetString(0, intx - 1);
                        PR   = mmls.GetString(intx);
                        break;
                    }
                }
                mems = MyStrings.Get_Array_Intiger(kStr);


                foreach (var item in Updmems)
                {
                    if (mems.Contains(item))
                    {
                        mems.Remove(item);
                    }
                }
                if (mems.Count > 0)
                {
                    TRV.Nodes[i].Text = MyStrings.Get_Array_Text(mems) + " " + PR;
                }
                else
                {
                    TRV.Nodes.RemoveAt(i);
                    i--;
                }
                list1.Add(mems);
            }
            TRV.Nodes.Add(UpdText);

            //string kStr = "";
        }
コード例 #7
0
        private void frmSupport_Load(object sender, EventArgs e)
        {
            if (ASTRA_Data != "")
            {
                chk_fx.Checked = false;
                chk_mx.Checked = false;

                chk_fy.Checked = false;
                chk_my.Checked = false;

                chk_fz.Checked = false;
                chk_mz.Checked = false;


                MyStrings mlist = new MyStrings(MyStrings.RemoveAllSpaces(ASTRA_Data), ' ');

                string kStr = "";
                int    r    = -1;
                for (int i = 0; i < mlist.Count; i++)
                {
                    if (mlist.StringList[i].StartsWith("FIXED"))
                    {
                        r = i;

                        cmb_support_type.SelectedIndex = 0;
                    }
                    else if (mlist.StringList[i].StartsWith("PINNED"))
                    {
                        r = i;
                        cmb_support_type.SelectedIndex = 1;
                        //break;
                    }
                    else if (mlist.StringList[i].StartsWith("FX"))
                    {
                        chk_fx.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("FY"))
                    {
                        chk_fy.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("FZ"))
                    {
                        chk_fz.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("MX"))
                    {
                        chk_mx.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("MY"))
                    {
                        chk_my.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("MZ"))
                    {
                        chk_mz.Checked = true;
                    }
                    //Chiranjit [2014 10 13]
                    else if (mlist.StringList[i].StartsWith("KFX"))
                    {
                        rbtn_kFX.Checked = true;
                        txt_kVal.Text    = mlist.StringList[i + 1];
                    }
                    else if (mlist.StringList[i].StartsWith("KFY"))
                    {
                        rbtn_kFY.Checked = true;
                        txt_kVal.Text    = mlist.StringList[i + 1];
                    }
                    else if (mlist.StringList[i].StartsWith("KFZ"))
                    {
                        rbtn_kFZ.Checked = true;
                        txt_kVal.Text    = mlist.StringList[i + 1];
                    }
                }

                if (r != -1)
                {
                    txt_joint_nos.Text = mlist.GetString(0, r - 1).Trim();
                }
                btnAddData.Text = "Change";
            }
            else
            {
                cmb_support_type.SelectedIndex = 0;
                txt_joint_nos.Text             = iACad.GetSelectedJointsInText();
            }
        }
コード例 #8
0
        private void frmMemberLoad_Load(object sender, EventArgs e)
        {
            if (ASTRA_Data.Count > 0)
            {
                string kStr = ASTRA_Data[0];

                MyStrings mlist = new MyStrings(MyStrings.RemoveAllSpaces(kStr), ' ');

                int r = -1;

                bool Is_LINEAR = kStr.Contains("LIN");



                for (int i = 0; i < mlist.Count; i++)
                {
                    if (Is_LINEAR)
                    {
                        #region LINEAR Load
                        if (r == -1)
                        {
                            if (mlist.StringList[i] == "LIN")
                            {
                                r = i;
                            }
                        }
                        if (mlist.StringList[i] == "X")
                        {
                            cmb_lload_dir.SelectedItem = mlist.StringList[i];
                            txt_lload_start.Text       = mlist.StringList[i + 1];
                        }
                        else if (mlist.StringList[i] == "Y")
                        {
                            cmb_lload_dir.SelectedItem = mlist.StringList[i];
                            txt_lload_start.Text       = mlist.StringList[i + 1];
                        }
                        else if (mlist.StringList[i] == "Z")
                        {
                            cmb_lload_dir.SelectedItem = mlist.StringList[i];
                            txt_lload_start.Text       = mlist.StringList[i + 1];
                        }
                        else if (mlist.StringList[i] == "GX")
                        {
                            cmb_lload_dir.SelectedItem = mlist.StringList[i];
                            txt_lload_start.Text       = mlist.StringList[i + 1];
                        }
                        else if (mlist.StringList[i] == "GY")
                        {
                            cmb_lload_dir.SelectedItem = mlist.StringList[i];
                            txt_lload_start.Text       = mlist.StringList[i + 1];
                        }
                        else if (mlist.StringList[i] == "GX")
                        {
                            cmb_lload_dir.SelectedItem = mlist.StringList[i];
                            txt_lload_start.Text       = mlist.StringList[i + 1];
                        }


                        if (mlist.StringList[i] == "X" ||
                            mlist.StringList[i] == "Y" ||
                            mlist.StringList[i] == "Z" ||
                            mlist.StringList[i] == "GX" ||
                            mlist.StringList[i] == "GY" ||
                            mlist.StringList[i] == "GZ")
                        {
                            if (mlist.Count > (i + 2))
                            {
                                txt_lload_end.Text = mlist.StringList[i + 2];
                            }
                        }
                        #endregion LINEAR Load
                    }
                    else
                    {
                        #region Member Load
                        if (r == -1)
                        {
                            if (mlist.StringList[i] == "UNI" || mlist.StringList[i].StartsWith("CON") ||
                                mlist.StringList[i].StartsWith("UMOM") || mlist.StringList[i].StartsWith("CMOM"))
                            {
                                r = i;

                                cmb_mload_type.SelectedItem = mlist.StringList[i];
                                continue;
                            }
                        }
                        if (mlist.StringList[i] == "X")
                        {
                            cmb_mload_dir.SelectedItem = mlist.StringList[i];
                            txt_mload_val.Text         = mlist.StringList[i + 1];
                        }
                        else if (mlist.StringList[i] == "Y")
                        {
                            cmb_mload_dir.SelectedItem = mlist.StringList[i];
                            txt_mload_val.Text         = mlist.StringList[i + 1];
                        }
                        else if (mlist.StringList[i] == "Z")
                        {
                            cmb_mload_dir.SelectedItem = mlist.StringList[i];
                            txt_mload_val.Text         = mlist.StringList[i + 1];
                        }
                        else if (mlist.StringList[i] == "GX")
                        {
                            cmb_mload_dir.SelectedItem = mlist.StringList[i];
                            txt_mload_val.Text         = mlist.StringList[i + 1];
                        }
                        else if (mlist.StringList[i] == "GY")
                        {
                            cmb_mload_dir.SelectedItem = mlist.StringList[i];
                            txt_mload_val.Text         = mlist.StringList[i + 1];
                        }
                        else if (mlist.StringList[i] == "GX")
                        {
                            cmb_mload_dir.SelectedItem = mlist.StringList[i];
                            txt_mload_val.Text         = mlist.StringList[i + 1];
                        }
                        else if (mlist.StringList[i] == "PX")
                        {
                            cmb_mload_dir.SelectedItem = mlist.StringList[i];
                            txt_mload_val.Text         = mlist.StringList[i + 1];
                        }
                        else if (mlist.StringList[i] == "PY")
                        {
                            cmb_mload_dir.SelectedItem = mlist.StringList[i];
                            txt_mload_val.Text         = mlist.StringList[i + 1];
                        }
                        else if (mlist.StringList[i] == "PZ")
                        {
                            cmb_mload_dir.SelectedItem = mlist.StringList[i];
                            txt_mload_val.Text         = mlist.StringList[i + 1];
                        }

                        if (mlist.StringList[i] == "X" ||
                            mlist.StringList[i] == "Y" ||
                            mlist.StringList[i] == "Z" ||
                            mlist.StringList[i] == "PX" ||
                            mlist.StringList[i] == "PY" ||
                            mlist.StringList[i] == "PZ" ||
                            mlist.StringList[i] == "GX" ||
                            mlist.StringList[i] == "GY" ||
                            mlist.StringList[i] == "GZ")
                        {
                            if (mlist.Count > (i + 2))
                            {
                                txt_mload_d1.Text = mlist.StringList[i + 2];
                            }
                            if (mlist.Count > (i + 3))
                            {
                                txt_mload_d2.Text = mlist.StringList[i + 3];
                            }
                        }
                        #endregion Member Load
                    }
                }

                if (r != -1)
                {
                    if (Is_LINEAR)
                    {
                        txt_mnos_lin.Text       = mlist.GetString(0, r - 1);
                        btn_lload_add.Text      = "Change";
                        tabControl1.SelectedTab = tab_LIN;
                    }
                    else
                    {
                        txt_mnos_uni.Text  = mlist.GetString(0, r - 1);
                        btn_mload_add.Text = "Change";
                    }
                }
                ASTRA_Data.Clear();
            }
            else
            {
                txt_mnos_uni.Text = iACad.GetSelectedMembersInText();
                txt_mnos_lin.Text = iACad.GetSelectedMembersInText();

                cmb_lload_dir.SelectedIndex  = 1;
                cmb_mload_type.SelectedIndex = 0;
                cmb_mload_dir.SelectedIndex  = 4;
            }
        }
コード例 #9
0
        public void Update_Data(string UpdText)
        {
            if (TRV == null)
            {
                return;
            }
            List <List <int> > list1 = new List <List <int> >();

            List <int> mems    = new List <int>();
            List <int> Updmems = new List <int>();

            //string UpdText = "1 TO 10 PR YD 0.410 ZD 0.32";



            MyStrings mmls = new MyStrings(UpdText, ' ');

            int    intx = 0;
            string kStr = "";
            string PR   = "";

            for (intx = 0; intx < mmls.Count; intx++)
            {
                if (mmls.StringList[intx].StartsWith("PR"))
                {
                    kStr = mmls.GetString(0, intx - 1);
                    PR   = mmls.GetString(intx);
                    break;
                }
            }
            Updmems = MyStrings.Get_Array_Intiger(kStr);
            string PR_Upd = PR;


            //MyStrings memGrp = new MyStrings(UpdText, ' ');

            string mat_str = kStr.Trim();

            for (int i = 0; i < TRV.Nodes.Count; i++)
            {
                //mems = MyStrings.Get_Array_Intiger(TRV.Nodes[i].Text);

                mmls = new MyStrings(TRV.Nodes[i].Text, ' ');
                if (Updmems.Count > 0)
                {
                    intx = 0;
                    kStr = "";
                    PR   = "";
                    for (intx = 0; intx < mmls.Count; intx++)
                    {
                        if (mmls.StringList[intx].StartsWith("PR"))
                        {
                            kStr = mmls.GetString(0, intx - 1);
                            PR   = mmls.GetString(intx);
                            break;
                        }
                    }
                    mems = MyStrings.Get_Array_Intiger(kStr);

                    if (mems.Count > 0)
                    {
                        foreach (var item in Updmems)
                        {
                            if (mems.Contains(item))
                            {
                                mems.Remove(item);
                            }
                        }
                        if (mems.Count > 0)
                        {
                            TRV.Nodes[i].Text = MyStrings.Get_Array_Text(mems) + " " + PR;
                        }
                        else
                        {
                            TRV.Nodes.RemoveAt(i);
                            i--;
                        }
                        list1.Add(mems);
                    }
                }
                else
                {
                    if (mmls.StringList[0] == mat_str)
                    {
                        TRV.Nodes[i].Text = UpdText;
                        //TRV.Nodes.RemoveAt(i);
                        goto _ss;
                    }
                }
            }
            TRV.Nodes.Add(UpdText);

_ss:

            iACad.AstraDocument.MemberProperties.AddTxt(UpdText);
            iACad.AstraDocument.MemberProperties.CopyMemberIncidence(iACad.AstraDocument.Members);
        }
コード例 #10
0
        private void frmSectionProperties_Load(object sender, EventArgs e)
        {
            //cmb_mass_unit.SelectedIndex = 0;
            //cmb_length_unit.SelectedIndex = 1;
            if (DGV_Joints == null ||
                DGV_Members == null)
            {
                gb1.Visible = false;
            }
            if (MGC != null)
            {
                foreach (var item in MGC)
                {
                    cmb_range.Items.Add(item.GroupName);
                }
            }
            if (ASTRA_Data.Count > 0)
            {
                MyStrings mlist = new MyStrings(MyStrings.RemoveAllSpaces(ASTRA_Data[0]), ' ');

                //kStr
                int r = -1;
                for (int i = 0; i < mlist.Count; i++)
                {
                    if (mlist.StringList[i].StartsWith("PR"))
                    {
                        r = i;
                        //break;
                    }
                    else if (mlist.StringList[i].StartsWith("YD"))
                    {
                        txt_YD.Text            = mlist.StringList[i + 1];
                        rbtn_dimension.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("ZD"))
                    {
                        txt_ZD.Text            = mlist.StringList[i + 1];
                        rbtn_dimension.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("YB"))
                    {
                        txt_YB.Text            = mlist.StringList[i + 1];
                        rbtn_dimension.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("ZB"))
                    {
                        txt_ZB.Text            = mlist.StringList[i + 1];
                        rbtn_dimension.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("AX"))
                    {
                        if (r == -1)
                        {
                            r = i;
                        }
                        txt_AX.Text = mlist.StringList[i + 1];
                        rbtn_calculated_values.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("A"))
                    {
                        if (r == -1)
                        {
                            r = i;
                        }
                        txt_AX.Text = mlist.StringList[i + 1];
                        rbtn_calculated_values.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("IX"))
                    {
                        txt_IX.Text = mlist.StringList[i + 1];
                        rbtn_calculated_values.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("IY"))
                    {
                        txt_IY.Text = mlist.StringList[i + 1];
                        rbtn_calculated_values.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("IZ"))
                    {
                        txt_IZ.Text = mlist.StringList[i + 1];
                        rbtn_calculated_values.Checked = true;
                    }
                }

                if (r != -1)
                {
                    kStr = mlist.GetString(0, r - 1).Trim();
                    if (cmb_range.Items.Contains(kStr))
                    {
                        cmb_range.SelectedItem = kStr;
                    }
                    else
                    {
                        cmb_range.SelectedIndex = 1;
                        txt_member_nos.Text     = kStr;
                    }
                }

                btn_add_data.Text = "Change";
            }
            else
            {
                //cmb_mass_unit.SelectedIndex = (int)iACad.MassUnit;
                //cmb_length_unit.SelectedIndex = (int)iACad.LengthUnit; ;
                rbtn_dimension.Checked = true;

                kStr = iACad.GetSelectedMembersInText();

                rbtn_member_select.Checked = true;

                if (kStr == "ALL")
                {
                    cmb_range.SelectedIndex = 0;
                }
                else
                {
                    cmb_range.SelectedIndex = 1;
                }


                txt_member_nos.Text = kStr;
            }
            Load_Floor_Levels();
        }
コード例 #11
0
        private void frmElementProp_Load(object sender, EventArgs e)
        {
            txt_DEN_val.Text = "";
            txt_EXX_val.Text = "";
            txt_EXY_val.Text = "";
            txt_EXG_val.Text = "";
            txt_EYY_val.Text = "";
            txt_EYG_val.Text = "";
            txt_GXY_val.Text = "";

            if (ASTRA_Data.Count > 0)
            {
                string kStr = ASTRA_Data[0].ToUpper();

                MyStrings mlist = new MyStrings(MyStrings.RemoveAllSpaces(kStr), ' ');

                int r = -1;
                for (int i = 0; i < mlist.Count; i++)
                {
                    if (r == -1)
                    {
                        if (mlist.StringList[i].StartsWith("TH"))
                        {
                            r                = i;
                            txt_mnos.Text    = mlist.GetString(0, r - 1);
                            txt_thk_val.Text = mlist.StringList[i + 1];
                        }
                    }
                    else
                    {
                        if (mlist.StringList[i].StartsWith("DEN"))
                        {
                            //1 TO 234 TH 0.07 DEN 0.0 EXX 3.00934E6  EXY 531061  EXG 0.0  EYY 3.00934E6  EYG 0.0  GXY 1.23913E6
                            //r = i;
                            //txt_mnos.Text = mlist.GetString(0, r - 1);
                            txt_DEN_val.Text = mlist.StringList[i + 1];
                        }
                        if (mlist.StringList[i].StartsWith("EXX"))
                        {
                            txt_EXX_val.Text = mlist.StringList[i + 1];
                        }
                        if (mlist.StringList[i].StartsWith("EXY"))
                        {
                            txt_EXY_val.Text = mlist.StringList[i + 1];
                        }
                        if (mlist.StringList[i].StartsWith("EXG"))
                        {
                            txt_EXG_val.Text = mlist.StringList[i + 1];
                        }
                        if (mlist.StringList[i].StartsWith("EYY"))
                        {
                            txt_EYY_val.Text = mlist.StringList[i + 1];
                        }
                        if (mlist.StringList[i].StartsWith("EYG"))
                        {
                            txt_EYG_val.Text = mlist.StringList[i + 1];
                        }
                        if (mlist.StringList[i].StartsWith("GXY"))
                        {
                            txt_GXY_val.Text = mlist.StringList[i + 1];
                        }
                    }
                }


                btn_aload_add.Text = "Change";
                //ASTRA_Data.Clear();
            }
            else
            {
                //txt_mnos.Text = iACad.GetSelectedE();
            }
        }
コード例 #12
0
        public void Get_Selected_Beams()
        {
            foreach (vdFigure fig in VDoc.ActiveLayOut.Entities)
            {
                fig.LineWeight = VectorDraw.Professional.Constants.VdConstLineWeight.LW_BYLAYER;
                fig.Update();
            }

            vdSelection gripset = GetGripSelection(false);

            if (gripset == null)
            {
                return;
            }

            vdDocument VD = VDoc;

            List <int> members = new List <int>();

            string kStr = "";


            foreach (vdFigure fig in gripset)
            {
                if (fig is vdPolyline)
                {
                    //if (gripset.Count > 1)
                    //    gripset.RemoveAt(0);
                    fig.LineWeight = VectorDraw.Professional.Constants.VdConstLineWeight.LW_158;
                    MyStrings ml = new MyStrings(fig.ToolTip.ToUpper(), ' ');
                    if (ml.StringList[0].StartsWith("MEMBER"))
                    {
                        if (kStr == "")
                        {
                            kStr = ml.GetString(3);
                        }
                        else
                        {
                            kStr += " , " + ml.GetString(3);
                        }

                        Fill_Slab(ml.GetString(3));
                        //gripset.RemoveItem(fig);
                    }
                    fig.Update();
                }
                else
                {
                    fig.LineWeight = VectorDraw.Professional.Constants.VdConstLineWeight.LW_158;
                    MyStrings ml = new MyStrings(fig.ToolTip.ToUpper(), ' ');
                    if (ml.StringList[0].StartsWith("MEMBER"))
                    {
                        kStr += ml.GetInt(3) + " ";
                        //if (!members.Contains(ml.GetInt(3)))
                        //    members.Add(ml.GetInt(3));
                    }
                    fig.Update();
                }
            }

            txt_beam_nos.Text = kStr;

            Show_Data();

            VDoc.Redraw(true);
        }
コード例 #13
0
        private void frmMemberRelease_Load(object sender, EventArgs e)
        {
            if (ASTRA_Data != "")
            {
                chk_Fx.Checked = false;
                chk_Mx.Checked = false;

                chk_Fy.Checked = false;
                chk_My.Checked = false;

                chk_Fz.Checked = false;
                chk_Mz.Checked = false;


                MyStrings mlist = new MyStrings(MyStrings.RemoveAllSpaces(ASTRA_Data), ' ');

                string kStr = "";
                int    r    = -1;
                for (int i = 0; i < mlist.Count; i++)
                {
                    if (mlist.StringList[i].StartsWith("START"))
                    {
                        r = i;

                        cmb_node.SelectedIndex = 0;
                    }
                    else if (mlist.StringList[i].StartsWith("END"))
                    {
                        r = i;
                        cmb_node.SelectedIndex = 1;
                        //break;
                    }
                    else if (mlist.StringList[i].StartsWith("FX"))
                    {
                        chk_Fx.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("FY"))
                    {
                        chk_Fy.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("FZ"))
                    {
                        chk_Fz.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("MX"))
                    {
                        chk_Mx.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("MY"))
                    {
                        chk_My.Checked = true;
                    }
                    else if (mlist.StringList[i].StartsWith("MZ"))
                    {
                        chk_Mz.Checked = true;
                    }
                }

                if (r != -1)
                {
                    txt_mem_nos.Text = mlist.GetString(0, r - 1).Trim();
                }
                btn_add_data.Text = "Change";
            }
            else
            {
                cmb_node.SelectedIndex = 0;
                txt_mem_nos.Text       = iACad.GetSelectedMembersInText();
            }
        }