private void button20_Click(object sender, EventArgs e) { this.com = "var body{0} = Nut({1}, {2}, {3});\r\n"; this.pic = "Nut.JPG"; this.par = "M,B,T"; Cylinder newForm = new Cylinder(this); newForm.Text = "Nut"; newForm.ShowDialog(); }
private void button50_Click(object sender, EventArgs e) { this.com = "AGM.Sketcher.CreateTan2Circles( {1}, {2}, {3}, {4}, {5}, {6});\r\n"; this.pic = "Tan2Circles.JPG"; this.par = "x0,y0,r0,x1,y1,r1"; Cylinder newForm = new Cylinder(this); newForm.Text = "Tan2Circles"; newForm.ShowDialog(); }
private void button16_Click(object sender, EventArgs e) { this.com = "var body{0} = Sphere({1}, {2}, {3}, {4});\r\n"; this.pic = "Sphere.JPG"; this.par = "D,x0,y0,z0"; Cylinder newForm = new Cylinder(this); newForm.Text = "Sphere"; newForm.ShowDialog(); }
private void button6_Click(object sender, EventArgs e) { this.com = "var body{0} = Cylinder({1}, {2});\r\n"; this.pic = "cylinder.JPG"; this.par = "D,L"; Cylinder newForm = new Cylinder(this); newForm.Text = "Cylinder"; newForm.ShowDialog(); }
private void button26_Click(object sender, EventArgs e) { this.com = "AGM.Sketcher.CreateArc3Points({1}, {2}, {3}, {4}, {5}, {6});\r\n"; this.pic = "Arc3.JPG"; this.par = "x0,y0,x1,y1,x2,y2"; Cylinder newForm = new Cylinder(this); newForm.ShowDialog(); bodyID -= 1; }
private void button15_Click(object sender, EventArgs e) { this.com = "var body{0} = Polygon({1}, {2}, {3}, {4}, {5}, {6});\r\n"; this.pic = "Polygon.JPG"; this.par = "num,d,l,x0,y0,z0"; Cylinder newForm = new Cylinder(this); newForm.Text = "Polygon"; newForm.ShowDialog(); }
private void button29_Click(object sender, EventArgs e) { this.com = "AGM.Sketcher.CreateRect( {1}, {2}, {3}, {4});\r\n"; this.pic = "Rec.JPG"; this.par = "x0,y0,x1,y1"; Cylinder newForm = new Cylinder(this); newForm.Text = "Rec"; newForm.ShowDialog(); }
private void button44_Click(object sender, EventArgs e) { this.com = "Array_Unite(body{1}, body{2}, {3}, {4}, {5}, {6}, {7});\r\n"; this.pic = "Array.JPG"; this.par = "body_main,body_unit,N1,L1,N2,L2,1"; Cylinder newForm = new Cylinder(this); newForm.Text = "Array_Unite"; newForm.ShowDialog(); }
private void button46_Click(object sender, EventArgs e) { this.com = "Circular_Array_Subtract(body{1}, body{2}, {3}, {4}, {5}, {6}, {7}, {8});\r\n"; this.pic = "Circular_Array.JPG"; this.par = "body_main,body_unit,angle,N1,X0,Y0,Z0,axis"; Cylinder newForm = new Cylinder(this); newForm.Text = "Circular_Array_Subtract"; newForm.ShowDialog(); }
private void button52_Click(object sender, EventArgs e) { this.com = "Parab({1}, {2}, {3}, {4}, {5});\r\n"; this.pic = "parab.JPG"; this.par = "P,x,y,z,0"; Cylinder newForm = new Cylinder(this); newForm.Text = "Cone"; newForm.ShowDialog(); }
private void button18_Click(object sender, EventArgs e) { this.com = "var body{0} = addMS({1}, {2}, {3}, {4}, {5});\r\n"; this.pic = "addMS.JPG"; this.par = "D,L,x0,y0,z0"; Cylinder newForm = new Cylinder(this); newForm.Text = "addMS"; newForm.ShowDialog(); }
private void button24_Click(object sender, EventArgs e) { this.com = "AGM.Sketcher.CreateLine({1}, {2}, {3}, {4});\r\n"; this.pic = "line.JPG"; this.par = "x0,y0,x1,y1"; Cylinder newForm = new Cylinder(this); newForm.Text = "Line"; newForm.ShowDialog(); bodyID -= 1; }
private void button25_Click(object sender, EventArgs e) { this.com = "AGM.Sketcher.CreateCircle( {1}, {2}, {3});\r\n"; this.pic = "Arc.JPG"; this.par = "x0,y0,D"; Cylinder newForm = new Cylinder(this); newForm.ShowDialog(); newForm.Text = "Arc"; bodyID -= 1; }
private void button9_Click(object sender, EventArgs e) { //this.bodyID += 1; //string a = String.Format("var body{0} = Boss({1}, {2}, {3}, {4}, {5}, {6});\r\n", this.bodyID.ToString(), "D", "Angel","y", "0", "0", "0"); //richTextBox1.Text += a; this.com = "var body{0} = Boss({1}, {2}, {3}, {4}, {5}, {6});\r\n"; this.pic = "boss.JPG"; this.par = "D,Angel,y,x0,y0,z0"; Cylinder newForm = new Cylinder(this); newForm.Text = "Boss"; newForm.ShowDialog(); }
private void button11_Click(object sender, EventArgs e) { //this.bodyID += 1; //string a = String.Format("var body{0} = addCB({1}, {2}, {3}, {4}, {5});\r\n", this.bodyID.ToString(), "M", "L", "x", "y", "z"); //richTextBox1.Text += a; this.com = "var body{0} = addCB({1}, {2}, {3}, {4}, {5}, {6}, {7}, {8});\r\n"; this.pic = "addCB.JPG"; this.par = "M,L,A,E,B,x0,y0,z0"; Cylinder newForm = new Cylinder(this); newForm.Text = "addCB"; newForm.ShowDialog(); }
private void button12_Click(object sender, EventArgs e) { //this.bodyID += 1; //string a = String.Format("var body{0} = Block({1}, {2}, {3}, {4}, {5}, {5});\r\n", this.bodyID.ToString(), "长", "宽", "高", "0", "0", "0"); //richTextBox1.Text += a; this.com = "var body{0} = BlockN({1}, {2}, {3}, {4}, {5}, {6}, {7});\r\n"; this.pic = "Block.JPG"; this.par = "长,宽,高,x0,y0,z0,Type"; Cylinder newForm = new Cylinder(this); newForm.Text = "Block"; newForm.ShowDialog(); }
private void button10_Click(object sender, EventArgs e) { //this.bodyID += 1; //string a = String.Format("OverRound0({1}, {2}, {3}, {4});\r\n", this.bodyID.ToString(), "x", "y", "z", "D"); //a += String.Format("result = AGM.Modelling.GetModelBody({0}, body{0});\r\n", this.bodyID.ToString()); //richTextBox1.Text += a; this.com = "var body{0} = OverRound0(0, {1}, {2}, {3});\r\n"; this.pic = "OverRound0.JPG"; this.par = "y0,z0,D"; Cylinder newForm = new Cylinder(this); newForm.Text = "OverRound"; newForm.ShowDialog(); }
private void pictureBox4_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(pall.pic3)) { return; } pall.com = "var body{0} = Counterbore({1}, {2}, {3}, {4}, {5}, {6}, {7});\r\n"; pall.pic = getname(pall.pic3); pall.par = "d1,d2,h1,h2,x0,y0,z0"; Cylinder newForm = new Cylinder(pall); this.Close(); this.Dispose(); newForm.ShowDialog(); }
private void pictureBox6_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(pall.pic5)) { return; } pall.com = "var body{0} = Drilling_BT({1}, {2}, {3}, {4}, {5}, {6}, {7});\r\n"; pall.pic = getname(pall.pic5); pall.par = "d,pas,h,hf,x0,y0,z0"; Cylinder newForm = new Cylinder(pall); this.Close(); this.Dispose(); newForm.ShowDialog(); }
private void pictureBox3_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(pall.pic2)) { return; } pall.com = "Through_hole({1}, {2}, {3}, {4}, {5});\r\n"; pall.pic = getname(pall.pic2); pall.par = "D,x0,y0,z0,type"; Cylinder newForm = new Cylinder(pall); this.Close(); this.Dispose(); newForm.ShowDialog(); }
private void pictureBox1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(pall.pic)) { return; } //MessageBox.Show(getname(pall.pic)); pall.com = "Counterbore1({1}, {2}, {3}, {4}, {5}, {6}, {7}, {8});\r\n"; //pall.pic = getname(pall.pic); pall.par = "d1,d2,h1,h2,x0,y0,z0,type"; Cylinder newForm = new Cylinder(pall); this.Close(); this.Dispose(); newForm.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { Cylinder newForm = new Cylinder(this); newForm.ShowDialog(); }