Openstaad- Get Plate Thickness

Hi all,

I'm trying to extract the plate thickness of given plates through Excel VBA.

I'm using STAAD connect update 3. Following is my macro, kindly let me know if any change in syntax has to be done. Thanks.

Sub GetPlateThick()
Dim staad As Object
Dim plateNo As Long
Dim plateThkArray(0 To 3) As Variant
Set staad = GetObject(, "staadpro.openstaad")
plateNo = 27813
staad.Property.GetPlateThickness plateNo, plateThkArray
Set staad = Nothing
End Sub