Rotation of Nodal Support Using COM Interface

Helpful Questions & Answers

  • Frequently Asked Questions (FAQs)

How can I rotate a nodal support using the COM interface?

Answer

The rotation of a nodal support is defined by means of a user-defined coordinate system. In the following example, a nodal support is rotated 45 ° about the z-axis. It is not necessary to define a new coordinate system via nodes. In this case, it is sufficient to use the RotatedSystemType option, which allows for spatial rotation of the support via three rotations about the x-, y-, and z-axes. The rotation is entered in radians:


Sub test_nodal_support()

Dim iApp As RFEM5.Application
Set iApp = GetObject(, "RFEM5.Application")

iApp.LockLicense

Dim iMod As RFEM5.IModel3
Set iMod = iApp.GetActiveModel

On Error GoTo e

'   get interface of modeldata
Dim iModData As RFEM5.IModelData2
Set iModData = iMod.GetModelData

'   get interface of nodal support
Dim iNs As RFEM5.INodalSupport
Set iNs = iModData.GetNodalSupport(1, AtNo)

'   get nodal support data
Dim ns As RFEM5.NodalSupport
ns = iNs.GetData

'   modify data
ns.ReferenceSystem = UserDefinedSystemType
ns.UserDefinedReferenceSystem.Axis1 = AxisX
ns.UserDefinedReferenceSystem.Axis2 = AxisY
ns.UserDefinedReferenceSystem.Type = RotatedSystemType
ns.UserDefinedReferenceSystem.RotationAngles.X = 0
ns.UserDefinedReferenceSystem.RotationAngles.Y = 0
ns.UserDefinedReferenceSystem.RotationAngles.Z = 45 * 3.14159265359 / 180

'   set nodal support data
iModData.PrepareModification
iNs.SetData ns
iModData.FinishModification

e:

If Err.Number <> 0 Then MsgBox Err.description, vbCritical, Err.Source

iMod.GetApplication.UnlockLicense
Set iMod = Nothing

End Sub


The program takes the existing nodal support from the currently opened model and modifies it. Since the user-defined coordinate system is not a direct part of the INodalSupport interface of the nodal support, the rotation can also be transferred when creating a nodal support, of course.

Keywords

Nodal supports User-defined Coordinate system Rotation

Downloads

Write Comment...

Write Comment...

  • Views 244x
  • Updated 20 May 2022

Contact Us

Contact Dlubal

Unable to find the answer to your question? Contact us via phone, email, chat or forum or send us your question directly through our online form.

Submit Individual Question

+49 9673 9203 0

[email protected]

Event Invitation

International Mass Timber Conference

Conference 27 March 2023 - 29 March 2023

Online Training | English

Eurocode 5 | Timber Structures According to DIN EN 1995-1-1

Online Training 23 September 2021 8:30 AM - 12:30 PM CEST

Online Training | English

Eurocode 3 | Steel Structures According to DIN EN 1993-1-1

Online Training 25 August 2021 8:30 AM - 12:30 PM CEST

Online Training | English

RFEM for Students | USA

Online Training 11 August 2021 1:00 PM - 4:00 PM EDT

Online Training | English

RFEM | Structural Dynamics and Seismic Design According to EC 8

Online Training 11 August 2021 8:30 AM - 12:30 PM CEST

Online Training | English

Eurocode 2 | Concrete structures according to DIN EN 1992-1-1

Online Training 29 July 2021 8:30 AM - 12:30 PM CEST

Online Training | English

RFEM | Basics

Online Training 13 July 2021 9:00 AM - 1:00 PM CEST

Online Training | English

RFEM | Basics | USA

Online Training 17 June 2021 9:00 AM - 1:00 PM EDT

Online Training | English

RFEM for Students | Part 3

Online Training 15 June 2021 2:00 PM - 4:30 PM CEST

Glass Design with Dlubal Software

Glass Design with Dlubal Software

Webinar 8 June 2021 2:00 PM - 2:45 PM CEST

Online Training | English

RFEM | Structural dynamics and seismic design according to EC 8

Online Training 2 June 2021 8:30 AM - 12:30 PM CEST

Online Training | English

Eurocode 5 | Timber structures according to DIN EN 1995-1-1

Online Training 20 May 2021 8:30 AM - 12:30 PM CEST

Online Training | English

RFEM for Students | Part 2

Online Training 17 May 2021 2:00 PM - 4:30 PM CEST

Blast Time History Analysis in RFEM

Blast Time History Analysis in RFEM

Webinar 13 May 2021 2:00 PM - 3:00 PM EDT

Online Training | English

Eurocode 2 | Concrete structures according to DIN EN 1992-1-1

Online Training 12 May 2021 8:30 AM - 12:30 PM CEST

Timber Structures | Part 2: Design

Timber Beam and Surface Structures | Part 2: Design

Webinar 11 May 2021 2:00 PM - 3:00 PM CEST

Online Training | English

Eurocode 3 | Steel structures according to DIN EN 1993-1-1

Online Training 6 May 2021 8:30 AM - 12:30 PM CEST

Online Training | English

RFEM | Basics

Online Training 23 April 2021 8:30 AM - 12:30 PM CEST

Online Training | English

RFEM for Students | USA

Online Training 21 April 2021 1:00 PM - 4:00 PM EDT