public static GCodeFile FromList(IEnumerable <string> file) { GCodeParser.Reset(); GCodeParser.Parse(file); return(new GCodeFile(GCodeParser.Commands) { FileName = "output.nc" }); }
public static GCodeFile Load(string path) { GCodeParser.Reset(); GCodeParser.ParseFile(path); return(new GCodeFile(GCodeParser.Commands) { FileName = path.Substring(path.LastIndexOf('\\') + 1) }); }