OpenSTAAD V8i

Geometry.GetSelectedBeams

Returns the beam numbers selected in SelBeamArray variable. Call this function after GetNoOfSelectedBeams.

VB Syntax

Geometry.GetSelectedBeams SelBeamArray, Sorted

Parameter

SelBeamArray

A Long array variable to receive the selected beam numbers.

Sorted

Integer variable: 1 = return the selections in sorted order, 0 = to return in the order of selection.

VB Example

 Dim objOpenSTAAD As Object
 Dim SelBeamsNo As Long
 Dim SelBeams() As Long
'Get the application object --
'Get no. of selected beams
 SelBeamsNo = objOpenSTAAD.Geometry.GetNoOfSelectedBeams
'Reallocate
 ReDim SelBeams(SelBeamsNo-1) As Long
 objOpenSTAAD.Geometry.GetSelectedBeams SelBeams 1

Reference Materials

Geometry.GetNoOfSelectedBeams