IsView

判断指定视图是否存在。

语法

rhinoscriptsyntax.IsView (view)

rhinoscript.view.IsView (view)

参数

view

必须参数。字符串或 Guid。视图的名称或 ID 。

返回值

布尔值

True 或 False 表示计算完成或失败。

示例

import rhinoscriptsyntax as rs

title = "Perspective"

result = rs.IsView(title)

if result:

    print "The " + title + " view exists."

else:

    print "The " + title + " view does not exist."

同见

ViewNames