OpenSTAAD V8i

Geometry.GetSurfaceList

This function returns the surface list of the current STAAD file.

VB Syntax

Geometry.GetSurfaceList SurfaceNumberArray 

Where:

SurfaceNumberArray

Long Array variable in which the surface numbers are returned.

VB Example

 Dim objOpenSTAAD As Object
 Dim lSurfaceCnt as Long
 Dim SurfaceNumberArray() As Long
'Get the application object
 Set objOpenSTAAD = GetObject( , "StaadPro.OpenSTAAD")
'Get Surface Numbers
 lSurfaceCnt = objOpenSTAAD.GetSurfaceCount
 ReDim SurfaceNumberArray(0 to (lSurfaceCnt-1)) As Long
'Get Surface list
 objOpenSTAAD.Geometry.GetSurfaceList SurfaceNumberArray

Reference Materials

Geometry.GetSurfaceCount