Verifies that a view is a page layout view.
rhinoscriptsyntax.IsLayout (layout)
rhinoscript.view.IsLayout (layout)
layout |
Required. String or Guid. The title or identifier of an existing page layout view. |
True |
If layout is a page layout view. |
False |
If layout is a standard, model view. |
None |
On error. |
import rhinoscriptsyntax as rs
view = rs.CurrentView()
if rs.IsLayout(view):
print "The current view is a page layout view."
else:
print "The current view is standard, model view."