OpenSTAAD V8i

View.SetInterfaceMode

This function sets the current visual mode in the STAAD.Pro environment.

VB Syntax

View.SetInterfaceMode mode

Where:

mode

An integer variable to set the current visual mode in STAAD.Pro environment. Followings are the valid values for mode:

0: Pre-processor or modeling mode

1: Post-processing mode

2: Interactive design mode for STAAD.etc interoperability

4: Piping mode

5: BEAVA (i.e., Bridge Deck) mode

Return

Returns true or false (boolean) value, signifying the success or failure of the call.

VB Example

Dim bRefresh As Boolean
Dim dLabel As Integer
Dim bRet As Boolean
'Get the application object --
'Make sure that Staad.Pro is in Postprocessing mode
bRet = staad.View.SetInterfaceMode 1
'Annotate the view with X displacement labels
If bRet Then
  bRefresh = True
  dLabel = 2 ' Y Reaction
  staad.View.SetReactionAnotationMode dLabel bRefresh
End If