static void Main(string[] args)
        {
            if (args.Length == 0)
            {
                throw new Exception("Not enough arguments supplied, please supply input MTConnect XML and optionally both the template and output stepnc path");
            }
            Log.outputTo = Log.OutputMode.Console;

            Analysis.Analysis analysis = analyze(args[0]);

            if (args.Length == 3)
            {
                generate(analysis, args[1], args[2]);
            }

            Log.Stop();
        }
 public static void generate(Analysis.Analysis analysis, String templatePath, String outputPath)
 {
     StepNC.StepNC.generateFromAnalysis(analysis, templatePath, outputPath);
 }