ViewNames

Returns the names, or titles, or identifiers of all views in the document.

Syntax

Rhino.ViewNames ([blnReturnNames [, intType]])

Parameters

blnReturnNames

Optional.  Boolean.  If True (default), then the names, or titles, of the views are returned. If False, then the identifiers of the views are returned.

intType

Optional.  Number.  The type of view to return, where:

Value

Description

0

Standard model views.

1

Page layout views.

2

Both standard model and page layout views.

Returns

Array

A array of strings identifying the view names, or titles, or identifiers if successful.

Null

If not successful, or on error.

Example

Dim arrViews, strView

' Print view names

arrViews = Rhino.ViewNames

If IsArray(arrViews) Then

For Each strView in arrViews

Rhino.Print strView

Next

End If

' Print view identifiers

arrViews = Rhino.ViewNames(False)

For Each strView In arrViews

  Rhino.Print strView & " = " & Rhino.ViewTitle(strView )

Next

Also See

IsView

ViewTitle