OpenSTAAD V8i
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.
Where:
A long variable containing the number to assign the newly created beam.
Long variables, provide member connectivity.
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