示例#1
0
 private void displayToolProfile_Click(object sender, EventArgs e)
 {
     if (dataValidation())
     {
         FunctionWise.isDisplayProfile = true;
         FunctionWise.initializeToolGeometryParametresForGeneralMillingTool(double.Parse(d.Text), double.Parse(r.Text), double.Parse(r_r.Text), double.Parse(r_z.Text), double.Parse(alpha.Text), double.Parse(beta.Text), double.Parse(h.Text), double.Parse(helixAngle.Text), double.Parse(rakeAngle.Text), int.Parse(noOfFlutes.Text), toolType, constHelix.Checked);
         double del_z   = 0.1;
         double del_phi = 5; // degrees
         FunctionWise.machiningParametersInitialization(1, 0, 1, del_z, del_phi);
         FunctionWise.descritizationOfMultipleTool();
     }
 }
示例#2
0
 private void toolParameterNextButton_Click(object sender, EventArgs e)
 {
     if (dataValidation())
     {
         if (this.nextForm == null)
         {
             SelectWorkpieceProfileForm selectSurfaceForm = new SelectWorkpieceProfileForm(this);
             selectSurfaceForm.Show();
             this.nextForm = selectSurfaceForm;
         }
         else
         {
             this.nextForm.Show();
         }
         this.Hide();
         FunctionWise.initializeToolGeometryParametresForGeneralMillingTool(double.Parse(d.Text), double.Parse(r.Text), double.Parse(r_r.Text), double.Parse(r_z.Text), double.Parse(alpha.Text), double.Parse(beta.Text), double.Parse(h.Text), double.Parse(helixAngle.Text), double.Parse(rakeAngle.Text), int.Parse(noOfFlutes.Text), toolType, constHelix.Checked);
         //FunctionWise.toolParametersInitialization(double.Parse(d.Text), double.Parse(h.Text), double.Parse(helixAngle.Text), double.Parse(rakeAngle.Text), int.Parse(noOfFlutes.Text));
     }
 }