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 } }); }
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 } }); }