OpenSTAAD V8i

CreateNamedView

This function creates a view with the specified name.

VB Syntax

CreateNamedView ViewName, FlagVal, ErrorVal

Where:

ViewName

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

FlagVal

A long variable that will hold the flag value depending upon which the view will be created.

ErrorVal

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

Return Value

(Boolean) True (1) if the function is successful, false (0) otherwise.

VB Example

Dim objOpenSTAAD As Object
Dim strViewName As String
Dim lFlagVal as Long
Dim lErrorVal as Long
'Set the application object
Set objOpenSTAAD = GetObject( , "StaadPro.OpenSTAAD")
objOpenSTAAD.CreateNamedView strViewName, lFlagVal, lErrorVal

Reference Materials

SaveNamedView

RemoveNamedView