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

            var config = new PCBProject()
            {
                PauseForToolChange    = true,
                DrillSpindleRPM       = 25000,
                DrillSpindleDwell     = 3,
                DrillSafeHeight       = 3,
                StockThickness        = 1.75,
                ScrapSides            = 3,
                ScrapTopBottom        = 3,
                DrillPlungeRate       = 200,
                SafePlungeRecoverRate = 1000,
            };

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

            Debug.WriteLine(gcode);
        }
Exemple #2
0
 public void GenerateDrillGCode()
 {
     Machine.GCodeFileManager.SetGCode(GCodeEngine.CreateDrillGCode(Machine.PCBManager.Board, Machine.PCBManager.Project));
 }