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