public void GenerateCutout()
        {
            var doc = XDocument.Load("./EagleSample.brd");
            var pcb = EagleParser.ReadPCB(doc);

            var config = new PCBProject()
            {
                PauseForToolChange    = true,
                MillFeedRate          = 200,
                MillCutDepth          = 0.5,
                MillPlungeRate        = 200,
                MillSafeHeight        = 10,
                MillSpindleDwell      = 3,
                MillSpindleRPM        = 15000,
                MillToolSize          = 3.2,
                StockThickness        = 1.75,
                ScrapSides            = 3,
                ScrapTopBottom        = 3,
                DrillPlungeRate       = 200,
                SafePlungeRecoverRate = 1000,
            };

            var gcode = GCodeEngine.CreateCutoutMill(pcb, config);

            Debug.WriteLine(gcode);
        }
Example #2
0
 public void GenerateMillingGCode()
 {
     Machine.GCodeFileManager.SetGCode(GCodeEngine.CreateCutoutMill(Machine.PCBManager.Board, Machine.PCBManager.Project));
 }
Example #3
0
 public void GenerateDrillGCode()
 {
     Machine.GCodeFileManager.SetGCode(GCodeEngine.CreateDrillGCode(Machine.PCBManager.Board, Machine.PCBManager.Project));
 }
Example #4
0
        public async void GenerateHoldDownGCode()
        {
            var drillIntoUnderlayment = await Popups.ConfirmAsync("Drill Holes In Underlayment?", "Would you also like to drill the holes in the underlayment?  You only need to use this once when setting up a fixture.  After that you should use the holes that were already created.");

            Machine.GCodeFileManager.SetGCode(GCodeEngine.CreateHoldDownGCode(Machine.PCBManager.Board, Machine.PCBManager.Project, drillIntoUnderlayment));
        }