Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When trying to extract loadcombinations, my model gets wrong results.
Some loadcases gets the analysis flag IRobotCaseAnalizeType.I_CAT_COMB
and my load combinations just throws this error
"Error HRESULT E_FAIL has been returned from a call to a COM component"
RobotCaseCollection RCC = (RobotCaseCollection)str.Cases.GetAll();
RobotCaseCombination loadRecord;
dictionaryOfLoadCombinations.Clear();
int caseCounter = 0;
for (int j = 1; j <= 100000; j++)
{
if (str.Cases.Exist(j) == -1)
{
try
{
IRobotCase RC = (IRobotCase)RCC.Get(j);
IRobotCaseAnalizeType AT = RC.AnalizeType;
if (AT == IRobotCaseAnalizeType.I_CAT_COMB || AT == IRobotCaseAnalizeType.I_CAT_COMB_NONLINEAR)
{
IRobotCaseCombination c = (IRobotCaseCombination)RCC.Get(j);
dictionaryOfLoadCombinations.Add(c.Number, new LoadCombinations() { AnalysisType = AT.ToString(), IRobotCombinationType = c.CombinationType });
}
caseCounter += 1;
if (RCC.Count == caseCounter)
{
break;
}
}
catch (Exception ex)
{
caseCounter += 1;
}
}
Solved! Go to Solution.