OpenSTAAD V8i

Geometry.CreateBeam

Adds a beam in the structure between nodes NodeA and NodeB with the number specified in nBeamNo. The difference between CreateBeam and AddBeam is the former has an option to label the beam with any user-defined number.

VB Syntax

Geometry.CreateBeamnBeamNo, NodeA, NodeB

Where:

nBeamNo

A long variable containing the number to assign the newly created beam.

NodeA, NodeB

Long variables, provide member connectivity.

VB Example

 Dim objOpenSTAAD As Object
 Dim NodeA As Long
 Dim NodeB As Long
'Get the application object --
 Set objOpenSTAAD = GetObject( , "StaadPro.OpenSTAAD")
'Add a beam connected between nodes 2 and 4. Call it beam # 77
 NodeA = 2
 NodeB = 4
 objOpenSTAAD.Geometry.CreateBeam 77, NodeA, NodeB

Reference Materials

Geometry.AddBeam

Geometry.AddMultipleBeams