Ejemplo n.º 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();
     }
 }
 private void toolInitialPositionNext_Click_1(object sender, EventArgs e)
 {
     if (dataValidation())
     {
         FunctionWise.machiningParametersInitialization(double.Parse(verticalFeed.Text), double.Parse(horizonatalFeed.Text), double.Parse(rpm.Text), double.Parse(del_z.Text), double.Parse(del_phi.Text));
         FunctionWise.initializationSurfaceParameters(double.Parse(depth.Text), double.Parse(xMargin.Text), double.Parse(yMargin.Text), double.Parse(alpha.Text), double.Parse(beta.Text), double.Parse(stepSize.Text), surface);
         TaskSelectionForm.initializeRPMandFeed(double.Parse(rpm.Text), Math.Sqrt(Math.Pow(double.Parse(verticalFeed.Text), 2) + Math.Pow(double.Parse(horizonatalFeed.Text), 2)));
         TaskSelectionForm taskSelectionForm = new TaskSelectionForm(this);
         taskSelectionForm.Show();
         this.nextForm = taskSelectionForm;
         //TaskSelectionForm.rpm = double.Parse(rpm.Text);
         //TaskSelectionForm.feedRate = Math.Sqrt(Math.Pow(double.Parse(verticalFeed.Text),2)+ Math.Pow(double.Parse(horizonatalFeed.Text), 2));
         this.Hide();
         //FunctionWise.MainOfLogic();
     }
 }