Esempio n. 1
0
        public static void RunAnalysis(ref cSapModel mySapModel, string filepath, ref List <string> LoadCaseNames, ref List <string> LoadPatternNames, ref List <string> LoadComboNames)
        {
            bool isLocked = mySapModel.GetModelIsLocked();

            int ret = 0;

            if (!isLocked)
            {
                ret = mySapModel.File.Save(filepath);
                ret = mySapModel.Analyze.RunAnalysis();
            }
            int lcnumber     = 0;
            int lpnumber     = 0;
            int lcombonumber = 0;

            string[] LCNames     = null;
            string[] LPNames     = null;
            string[] LComboNames = null;

            ret = mySapModel.LoadCases.GetNameList(ref lcnumber, ref LCNames);
            if (LCNames != null)
            {
                LoadCaseNames = LCNames.ToList();
            }

            ret = mySapModel.LoadPatterns.GetNameList(ref lpnumber, ref LPNames);
            if (LPNames != null)
            {
                LoadPatternNames = LPNames.ToList();
            }

            ret = mySapModel.RespCombo.GetNameList(ref lcombonumber, ref LComboNames);
            if (LComboNames != null)
            {
                LoadComboNames = LComboNames.ToList();
            }
        }
Esempio n. 2
0
        public static void RunAnalysis(ref cSapModel mySapModel, string filepath, ref List<string> LoadCaseNames, ref List<string> LoadPatternNames, ref List<string> LoadComboNames)
        {
            bool isLocked = mySapModel.GetModelIsLocked();

            int ret = 0;
            if (!isLocked)
            {
                ret = mySapModel.File.Save(filepath);
                ret = mySapModel.Analyze.RunAnalysis();
            }
            int lcnumber = 0;
            int lpnumber = 0;
            int lcombonumber = 0;
            string[] LCNames = null;
            string[] LPNames = null;
            string[] LComboNames = null;

            ret = mySapModel.LoadCases.GetNameList(ref lcnumber, ref LCNames);
            if(LCNames!=null) LoadCaseNames = LCNames.ToList();

            ret = mySapModel.LoadPatterns.GetNameList(ref lpnumber, ref LPNames);
            if (LPNames != null) LoadPatternNames = LPNames.ToList();

            ret = mySapModel.RespCombo.GetNameList(ref lcombonumber, ref LComboNames);
            if(LComboNames!=null) LoadComboNames = LComboNames.ToList();
        }