OpenSTAAD V8i

RemoveNamedView

This function removes the current view with the specified name.

VB Syntax

RemoveNamedView ViewName, ErrorVal

Where:

ViewName

A string variable that will hold the name of the view to be removed.

ErrorVal

A long variable that will hold the error number if the view cannot be removed.

VB Example

Dim objOpenSTAAD As Object
Dim strViewName As String
Dim nErrorVal as Long
'Application object
Set objOpenSTAAD = GetObject( , "StaadPro.OpenSTAAD")
objOpenSTAAD.RemoveNamedView strViewName, nErrorVal

Reference Materials

CreateNamedView

SaveNamedView