Exemple #1
0
        public static GCodeFile FromList(IEnumerable <string> file)
        {
            GCodeParser.Reset();
            GCodeParser.Parse(file);

            return(new GCodeFile(GCodeParser.Commands)
            {
                FileName = "output.nc"
            });
        }
Exemple #2
0
        public static GCodeFile Load(string path)
        {
            GCodeParser.Reset();
            GCodeParser.ParseFile(path);

            return(new GCodeFile(GCodeParser.Commands)
            {
                FileName = path.Substring(path.LastIndexOf('\\') + 1)
            });
        }