OpenSTAAD V8i
This function sets the current page mode in the STAAD.Pro environment.
Where:
An integer variable to set the current visual mode in the STAAD.Pro environment. Valid values for modeSection are the following:
An integer variable to set the current main page (the tabs on the left-hand side of the screen) in the STAAD.Pro environment. The following are valid values for modeMainPage:
An integer variable to set the current sub page (within a particular main page - the tabs on the left-hand side of the screen) in the STAAD.Pro environment. The following are valid values for modeSubPage:
Returns true or false (boolean) value, signifying the success or failure of the call.
Sub Main()
Dim bRet As Boolean
Dim bRefresh As Boolean
Dim staad As Object
Set staad = GetObject(, "StaadPro.OpenSTAAD")
'Test pre-processing modes
bRet = staad.View.SetInterfaceMode(1)
If bRet Then
staad.View.SetModeSectionPage(1,6,20)
staad.View.SetBeamAnnotationMode(2,1,False)
End If
staad.View.RefreshView()
End Sub