Пример #1
0
        /// <summary>
        /// ElementsMD5 -- calculate hash code MD5 for the list of elements of the model
        /// </summary>
        /// <returns></returns>
        /// <remarks>It could take few minutes or more for the large model</remarks>
        /// <history>21/6/2016 moved here from TS_OpenAPI
        /// </history>
        public static string ElementsMD5()
        {
            //            DateTime t0 = DateTime.Now;
            string str = "";

            foreach (var elm in Elements.Values)
            {
                str += elm.mat + elm.prf + elm.length.ToString();
            }
            string ModelMD5 = Lib.ComputeMD5(str);

            return(ModelMD5);
            //            new Log("MD5 time = " + (DateTime.Now - t0).ToString());
        }