OpenSTAAD V8i
This function returns the number of surfaces in the currently open STAAD file.
Dim objOpenSTAAD As Object
Dim lSurfaceCount as Long
'Get the application object
Set objOpenSTAAD = GetObject( , "StaadPro.OpenSTAAD")
'Get Surfaces Count
lSurfaceCount = objOpenSTAAD.GetSurfaceCount
Reference Materials