IsViewCurrent

Verifies that the specified view is the current, or active, view.

Syntax

rhinoscriptsyntax.IsViewCurrent (view)

rhinoscript.view.IsViewCurrent (view)

Parameters

view

Required.  String or Guid.  The title or identifier of the view.

Returns

Boolean

True or False indicating success or failure.

Example

import rhinoscriptsyntax as rs

title = "Perspective"

result = rs.IsViewCurrent(title)

if result:

    print "The " + title + " view is current."

else:

    print "The " + title + " view is not current."

Also See

CurrentView