I'm trying to create a script that needs to go thru every subcase (analysis results) of simulation. Number of subcases is different in each file so I need to somehow count them and activate for each model.
Can you direct me to proper keywords that I should use? I searched a little and I think I should use: App.feAnalysisStudy.CountOutputSets
Im having trouble with this function. Do you maybe have some example how to use it?
Dim App Asfemap.modelSet App = feFemap()
'Signed 64-bit (8 byte) IntegerDim numb AsLong'Dim AMngr As femap.AnalysisMgr'Set AMngr = App.feAnalysisMgr'Create Analysis Study ObjectDim AStudy Asfemap.AnalysisStudySet AStudy = App.feAnalysisStudy'Loop through all Analysis Studies and Print Number of Results Sets in EachWhile AStudy.Next()
'Activate each Analysis Study as you loop through
AStudy.Active = AStudy.ID
numb = AStudy.CountOutputSets()
Msg = "Analysis Study: "+Str$(AStudy.ID )+", has "+Str$(numb)+" Results Sets"