I would like to do the same thing as the 'Preview Results' button on PSE.
I've tried using the Run() method of the AFAnalysis class, but I'm not sure how to initialize the AFCase correctly and also I don't know where to read the results.
I've tried with this code:
AFAnalysis analysis = AFAnalysis.FindAnalysis(pISystem, eventTest.Analysis.ID); AFCase myCase = new AFCase(analysis, startRangeTime, endRangeTime); myCase.CollectElements(); myCase.CollectInputs(); myCase.Run(); analysis.Run(myCase); var results = myCase.Results;
But it doesn't seems to work.
Do you have any idea?
Thanks, Michele