OpenSTAAD V8i

Geometry.GetSolidCount

This function returns the number of solids in the currently open STAAD file.

VB Syntax

Geometry.GetSolidCount ()

Return Value

(Numeric value) The total number of solids in the model as a long variable.

VB Example

 Dim objOpenSTAAD As Object
 Dim lSolidCount as Long
'Get the application object
 Set objOpenSTAAD = GetObject( , "StaadPro.OpenSTAAD")
'Get Solids Count
 lSolidCount = objOpenSTAAD.Geometry.GetSolidCount ()

Reference Materials

Geometry.GetSolidList