How can I change the calculation parameters of a load case using the COM interface?
Answer
The calculation parameters of a load case cannot initially be set when creating it, but only afterwards by 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.
Keywords
Calculation parameters AnalysisParameters Theory
Downloads
Links
Contact us
Did you find your question?
If not, contact us via our free e-mail, chat, or forum support, or send us your question via the online form.
Recommended Events
Timber Beam and Surface Structures | Part 1: Modeling, Load Input, Combinatorics
Webinar 05/04/2021 2:00 PM - 3:00 PM CEST
Eurocode 3 | Steel structures according to DIN EN 1993-1-1
Online Training 05/06/2021 8:30 AM - 12:30 PM CEST
Eurocode 2 | Concrete structures according to DIN EN 1992-1-1
Online Training 05/12/2021 8:30 AM - 12:30 PM CEST
Eurocode 5 | Timber structures according to DIN EN 1995-1-1
Online Training 05/20/2021 8:30 AM - 12:30 PM CEST
RFEM | Structural dynamics and earthquake design according to EC 8
Online Training 06/02/2021 8:30 AM - 12:30 PM CEST
Videos
Models to Download
Knowledge Base Articles

New
Advantages of User-Defined Views
RFEM and RSTAB offer many display options in the Display navigator. They can differ greatly depending on their function.
Screenshots
RFEM/RSTAB Add-on Module RF-IMP/RSIMP | Generation of Geometric Replacement Imperfections and Pre-deformed Replacement Structures
Designed with the FEA Software RFEM 3 | I am constantly impressed by the range of its capabilities/flexibilities that Dlubal offers | Design Manager Hünnebeck
FEA Software RFEM & Structural Analysis Software RSTAB | Video Tutorial | Creating and Importing Blocks
Product Features Articles

New
Depending on stiffness, mass, and damping, structures react differently to wind action.
Frequently Asked Questions (FAQ)
- I have bought a new computer. How can I use my softlock license on it?
- How do I install the network license (USB dongle) on the server?
- Is it possible to keep the results from RWIND Simulation when deleting the FE mesh if I only adjust materials or support conditions?
- Why are the values of a column base, head or center on the individual columns only displayed partially for the results from the calculation in RF‑CONCRETE Columns?
- In RF-/TIMBER AWC and RF-/TIMBER CSA, I receive the error that says torsion limit exceeded. How do I bypass this error message?
- Is it possible to display the load cases and load combinations related to a result combination that lead to the maximum/minimum result?
- Do you also offer student versions of the programs RSTAB and RFEM?
- How do I install the network license (NET softlock) on the server?
- The authorization fails when starting the program. It seems that the dongle is damaged. What can I do?
- The scale of my graphic is not displayed in the printout report. How can I change that?
Customer Projects
Associated Products