Esempio n. 1
0
        public static Dictionary <string, ComAuto> OpenModel(string filePath)
        {
            ComAuto GsaObj = new ComAuto();

            GsaObj.SetLocale(Locale.LOC_EN_GB);
            GsaObj.Open(filePath);

            return(new Dictionary <string, ComAuto>
            {
                { "GSA File", GsaObj as ComAuto }
            });
        }
Esempio n. 2
0
        public static Dictionary <string, ComAutoClass> OpenGsaModel(string filePath)
        {
            ComAuto GsaObj = new ComAuto();

            GsaObj.SetLocale(Locale.LOC_EN_GB);
            GsaObj.Open(filePath);
//            ComAutoClass gsaFile = GsaObj as ComAutoClass;

            return(new Dictionary <string, ComAutoClass>
            {
//                    {"GSA File", gsaFile},
                { "GSA Object", GsaObj as ComAutoClass }
            });
        }