OpenSTAAD V8i

ModifyNamedView

This function modifies the named views of the currently open .STD file.

VB Syntax

ModifyNamedView ViewName, Entities, Array EntityArray, ArrayQualifier, ModifyFlag, ErrorVal

Where:

ViewName

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

Entities

An long variable that will hold number of entities.

  • EntityArray — An long that will hold entity number.
  • ArrayQualifier — A integer variable that will hold entity qualifier value. Value may vary from 0 to 4(  0 - Node, 1 - Beam, 2 - Plate, 3 - Solid,  4 – Surface)
ModifyFlag

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

ErrorVal

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

VB Example

Dim objOpenSTAAD As Object
Dim strViewName As String
Dim intEntities As Integer
Dim lEntityNo as Long
Dim lEntityQualifier as Long
Dim lFlagVal as Long
Dim lErrorVal as Long
'Set the application object
Set objOpenSTAAD = GetObject( , "StaadPro.OpenSTAAD")
objOpenSTAAD. ModifyNamedView strViewName, intEntities, lEntityNo, lEntityQualifier, _
lFlagVal, lErrorVal