Refreshes the view for the specified window(s).
Namespace:
ETABS2016
Assembly:
ETABS2016 (in ETABS2016.dll) Version: 16.0.0.0 (16.0.0.0)
Syntaxint RefreshView(
int Window = 0,
bool Zoom = true
)
Function RefreshView (
Optional Window As Integer = 0,
Optional Zoom As Boolean = true
) As Integer
int RefreshView(
int Window = 0,
bool Zoom = true
)
abstract RefreshView :
?Window : int *
?Zoom : bool
(* Defaults:
let _Window = defaultArg Window 0
let _Zoom = defaultArg Zoom true
*)
-> int
Parameters
- Window (Optional)
- Type: SystemInt32
This is 0 meaning all windows or an existing window number.
It indicates the window(s) to have its view refreshed. - Zoom (Optional)
- Type: SystemBoolean
If this item is True, the window zoom is maintained when the view
is refreshed. If it is False, the zoom returns to a default zoom.
Return Value
Type:
Int32Returns zero if the window views are successfully refreshed;
otherwise it returns a nonzero value.
Remarks
ExamplesPublic Sub Example()
Dim SapModel As cSapModel
Dim EtabsObject As cOAPI
Dim ret As Integer = -1
EtabsObject = CreateObject("CSI.ETABS.API.ETABSObject")
ret = EtabsObject.ApplicationStart()
SapModel = EtabsObject.SapModel
ret = SapModel.InitializeNewModel()
ret = SapModel.File.NewSteelDeck(4,12,12,4,4,24,24)
ret = SapModel.View.RefreshView()
EtabsObject.ApplicationExit(False)
SapModel = Nothing
EtabsObject = Nothing
End Sub
See Also