Author Topic: A question to plugin writers - V-cutter pocket  (Read 29051 times)

Offline Dragonfly

  • CNC Jedi
  • *****
  • Posts: 2680
    • View Profile
Re: A question to plugin writers - V-cutter pocket
« Reply #15 on: February 12, 2022, 19:28:47 pm »
Just to conclude, are any changes required to the plugin ?
I have some notes on my mind but before sharing them I'd like to do a real test. ATM I am not able to do it because I do not want to stop the current work. My spindle has been running @18000 rpm 9 hours already :o
Fingers crossed it's the third symbol being milled with the same tool :)
I will let you know after I do the test.

I have the .nc files prepared at another place with 'VCarve Pro' and the parameters for the milling appear to be correct. Asked for the plugin because I'd like to be independent of other people and rely on CamBam only.
« Last Edit: February 12, 2022, 19:32:39 pm by Dragonfly »

Offline Dragonfly

  • CNC Jedi
  • *****
  • Posts: 2680
    • View Profile
Re: For Eddy - V-cutter pocket
« Reply #16 on: March 02, 2022, 13:17:48 pm »
Hi Eddy,
Finally had some spare time to play with the plugin.
And there is a problem. Maybe because I didn't understand something correctly, maybe not.
While the profiles are generated with correct roughing clearance and target depth is set correct the stock surface is changed with positive increments so that the final effect is that the tool stays always at the first depth level. I tried with positive and negative values in the plugin initial dialog but without change in in the .nc code.
I am attaching a .cb file. If you look at the generated profile you will notice that stock surface value is going positive with every depth increment.
Parameters:
Depth Increment 0.05 mm
Target Depth 0.6 mm
Tool tip 0.2 mm
Tool Angle 20*

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7597
    • View Profile
    • Cambam V1.0 French Doc
Re: A question to plugin writers - V-cutter pocket
« Reply #17 on: March 02, 2022, 13:37:04 pm »
Hello

Just for info, If Fly pocket is used when a "fly pocket" already exist, we get an exception error (System.Exception: Part - "Fly Pocket" already exisits!)

Fly: I get the same result as you with stock surface that increase at each mop

++
David

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5333
  • Made in England
    • View Profile
Re: A question to plugin writers - V-cutter pocket
« Reply #18 on: March 02, 2022, 18:59:40 pm »
Yes you are correct, sorry about that it was my fault.

Both issues fixed in version 2 attached., Stock Surface is now negative and no error if making multiple Parts with the plugin.


I used this code to get a unique name each time a Part with the same name is found, might be useful to someone.

Code: [Select]

string MyNewPart = "Fly Pocket";

MyNewPart = MakeNewPart(MyNewPart);
CamBamUI.MainUI.ActiveView.CADFile.SetActivePart(MyNewPart);


 // Make a New Part, return unique name if requested Part  exists
        public string MakeNewPart(string DesiredName)
        {
            string ActualName = DesiredName;
            int Index = 1;

            while (CamBamUI.MainUI.ActiveView.CADFile.HasPart(ActualName))
            {
                ActualName = DesiredName + "(" + Index.ToString() + ")";
                Index++;
            }

            CamBamUI.MainUI.ActiveView.CADFile.CreatePart(ActualName);
            return ActualName;
        }
« Last Edit: March 02, 2022, 19:08:02 pm by EddyCurrent »
Filmed in Supermarionation

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7597
    • View Profile
    • Cambam V1.0 French Doc
Re: A question to plugin writers - V-cutter pocket
« Reply #19 on: March 02, 2022, 21:35:13 pm »
Hello

Thanks for the code  ;) ; added to the snippet list

++
David