New

FAQ 004184 EN

1 November 2019

Thomas Günthel Calculation RFEM RSTAB RF-COM RS-COM

How to set the calculation parameters using the COM interface?

Answer

The following code shows how to get different calculation parameters via the COM interface. It also demonstrates how to specify a setting for deactivating shear stiffness:

    '   get model interface
    Set iApp = iModel.GetApplication()
    iApp.LockLicense
    
    '   get calculation interface
    Dim iCalc As RFEM5.ICalculation2
    Set iCalc = iModel.GetCalculation
    
    '   get surface bending theory
    Dim calc_bend As RFEM5.BendingTheoryType
    calc_bend = iCalc.GetBendingTheory
    
    '   get settings for nonlinearities
    Dim calc_nl As RFEM5.CalculationNonlinearities
    calc_nl = iCalc.GetNonlinearities
    
    '   get precision and tolerance settings
    Dim calc_prec As RFEM5.PrecisionAndTolerance
    calc_prec = iCalc.GetPrecisionAndTolerance
    
    '   get calculation settings
    Dim calc_sets As RFEM5.CalculationSettings
    calc_sets = iCalc.GetSettings
    
'get calculate options
    Dim calc_opts As RFEM5.CalculationOptions
    calc_opts = iCalc.GetOptions
    
    '   set ShearStiffness to false
    calc_opts.ShearStiffness = False
    iCalc.SetOptions calc_opts

In the annex, there is an EXCEL macro to download.

Keywords

COM Accuracy Tolerance Calculation parameters

Downloads

Contact us

Contact to Dlubal

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.

+49 9673 9203 0

info@dlubal.com

RFEM Main Program
RFEM 5.xx

Main Program

Structural engineering software for finite element analysis (FEA) of planar and spatial structural systems consisting of plates, walls, shells, members (beams), solids and contact elements

Price of First License
3,540.00 USD
RSTAB Main Program
RSTAB 8.xx

Main Program

The structural engineering software for design of frame, beam and truss structures, performing linear and nonlinear calculations of internal forces, deformations, and support reactions

Price of First License
2,550.00 USD
RFEM Other
RF-COM 5.xx

Add-on Module

Programmable interface (API) based on the COM technology

Price of First License
580.00 USD
RSTAB Other
RS-COM 8.xx

Add-on Module

Programmable interface (API) based on the COM technology

Price of First License
580.00 USD