This article was translated by Google Translator View original text


FAQ 004195 EN

7 November 2019

Thomas Günthel Modeling | Structure RFEM RSTAB RF-COM RS-COM

How can I retroactively change a member via the COM interface?


To modify an existing element, you have to get the interface to the corresponding element, here an example of a member:

Dim iModel As RSTAB8.model
Set iModel = GetObject (, "RSTAB8.Model")
Dim iModData As IModelData
Set iModData = iModel.GetModelData
Dim iMem As RSTAB8.IMember
Set iMem = iModData.GetMember (1, AtNo)

Use this code to get the interface to member 1, which must already be created. Then, you can use the .GetData () method of the interface to get the member data.

If you want to modify data (such as the member rotation here), you can subsequently transfer it to the program within a Prepare-/FinishModification block with the method .SetData ().

Dim mem As RSTAB8.Member
mem = iMem.GetData
mem.Rotation.Angle = 0.5
mem.Rotation.Type = RSTAB8.Angle
iMem.SetData mem


COM Rotation Member IMember Change Modify


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

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
RS-COM 8.xx

Add-on Module

Programmable interface (API) based on the COM technology

Price of First License
580.00 USD