OpenSTAAD V8i

Geometry.GetSolidList

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

VB Syntax

Geometry.GetSolidList SolidNumberArray 

Where:

SolidNumberArray

Long Array variable in which the solid numbers are returned.

VB Example

 Dim objOpenSTAAD As Object
 Dim lSolidCnt as Long
 Dim SolidNumberArray() As Long
'Get the application object
 Set objOpenSTAAD = GetObject( , "StaadPro.OpenSTAAD")
'Get Solid Numbers
 lSolidCnt = objOpenSTAAD.Geometry.GetSolidCount
 ReDim SolidNumberArray(0 to (lSolidCnt-1)) As Long
'Get Solid list
 objOpenSTAAD.Geometry.GetSolidList SolidNumberArray

Reference Materials

Geometry.GetSolidCount