Пример #1
0
        private static Dictionary <string, string> GetOutputKeys(string edx)
        {
            Read edxFile = new Read()
            {
                Metaname = edx
            };
            string directoryName = Path.GetDirectoryName(edx);

            string cleanFile  = edxFile.WriteCleanXml(directoryName, fileType: ".xml");
            var    outputKeys = Read.GetDictionaryFromEdx(cleanFile);

            try { File.Delete(cleanFile); }
            catch { }

            return(outputKeys);
        }
Пример #2
0
        public static List <double> ParseBinBuilding(string edx, string edt, int variable, FaceDirection dir)
        {
            Read edxFile = new Read()
            {
                Metaname = edx
            };
            string directoryName = Path.GetDirectoryName(edx);

            string cleanFile  = edxFile.WriteCleanXml(directoryName, fileType: ".xml");
            var    outputKeys = Read.GetDictionaryFromEdx(cleanFile);

            try { File.Delete(cleanFile); }
            catch { }

            List <double> results = GetNumberFromBinaryByDirection(edt, variable, dir, outputKeys);

            return(results);
        }