The calculation parameters of a load case cannot be set initially, when creating it, but only afterwards, using the interface of the existing load case. To get the interface of a load case, you have to get the interfaces 'IModel' and 'ILoads' first:
Sub test_analysis_parameters()
Dim iApp As RFEM5.ApplicationSet iApp = GetObject(, "RFEM5.Application")
iApp.LockLicense
Dim iMod As RFEM5.IModel3Set iMod = iApp.GetActiveModel
On Error GoTo e
' get interface of loadsDim iLds As RFEM5.iLoadsSet iLds = iMod.GetLoads
' get interface of load caseDim iLc As RFEM5.ILoadCaseSet iLc = iLds.GetLoadCase(1, AtNo)
' get analysis parametersDim param_analy As RFEM5.AnalysisParametersparam_analy = iLc.GetAnalysisParameters
' change analysis parametersparam_analy.Method = Postcriticalparam_analy.ModifyLoadingByFactor = Trueparam_analy.LoadingFactor = 1.5' ...
' set new analysis parametersiLds.PrepareModificationiLc.SetAnalysisParameters param_analyiLds.FinishModification
e:
If Err.Number <> 0 Then MsgBox Err.description, vbCritical, Err.Source
iMod.GetApplication.UnlockLicenseSet iMod = Nothing
End Sub
Use 'ILoads.GetLoadcase' to get the interface for a specific load case. This interface provides the functions 'GetAnalysisParameters' and 'SetAnalysisparameters' that you can then use to read out and write the parameters.
The same procedure also applies for load combinations.