OpenSTAAD V8i

Geometry.GetBeamLength

Returns the length of the beam

VB Syntax

Geometry.GetBeamLength BeamNo 

Where:

BeamNo

A long variable providing the beam member number for which the length is to be retrieved.

Return Value

A double variable containing the length of the beam.

VB Example

 Dim objOpenSTAAD As Object
 Dim BeamNo As Long
 Dim BeamLen As Long
'Get the application object --
 Set objOpenSTAAD = GetObject( , "StaadPro.OpenSTAAD")
'Get length of the beam 10
 BeamNo = 10
 BeamLen = objOpenSTAAD.Geometry.GetBeamLength BeamNo

Reference Materials

Property.GetBetaAngle

Property.GetBeamProperty

Property.GetBeamConstants