Beispiel #1
0
        public static void executeWorkOrder(GCodeWorkOrder wo)
        {
            //  finally, the rubber meets the road!
            GCodeGenerator gpin = new GCodeGenerator(wo);

            File.WriteAllText(Path.Combine(wo.fileInfo.directory, wo.fileInfo.fileName),
                              gpin.generateMainMill(!wo.useToothMill));
            if (wo.useToothMill)
            {
                File.WriteAllText(Path.Combine(wo.fileInfo.directory, wo.fileInfo.toothFileName),
                                  gpin.generateToothMill());
            }
        }
Beispiel #2
0
 public static void executeWorkOrder(GCodeWorkOrder wo)
 {
     //  finally, the rubber meets the road!
     GCodeGenerator gpin = new GCodeGenerator(wo);
     File.WriteAllText(Path.Combine(wo.fileInfo.directory, wo.fileInfo.fileName),
         gpin.generateMainMill(!wo.useToothMill));
     if (wo.useToothMill)
     {
         File.WriteAllText(Path.Combine(wo.fileInfo.directory, wo.fileInfo.toothFileName),
             gpin.generateToothMill());
     }
 }