Esempio n. 1
0
        private static void Main(string[] args)
        {
            var file       = @"C:\Users\mingo\Documents\GitHub\EPDoc2Json\Doc\group-heating-and-cooling-coils.tex";
            var sectionObj = TexHelper.ReadTexAsObj(file);

            var jsonFile = @"C:\Users\mingo\Documents\GitHub\EPDoc2Json\DocJson\group-heating-and-cooling-coils.json";

            SaveAsJson(jsonFile, sectionObj);

            Console.Read();
        }
Esempio n. 2
0
        private static void ProcessSingleFile(string folder, string TexFilePath)
        {
            var sectionObj = TexHelper.ReadTexAsObj(TexFilePath);
            // Output into DocJson/*.json
            FileInfo f            = new FileInfo(TexFilePath);
            var      JsonFilePath = Path.Combine(folder, Path.ChangeExtension(f.Name, ".json"));

            Console.WriteLine(TexFilePath, JsonFilePath);

            SaveAsJson(JsonFilePath, sectionObj);

            Console.WriteLine($"Saved to {JsonFilePath}");
        }