判断指定视图是否为当前的活动视图。
rhinoscriptsyntax.IsViewCurrent (view)
rhinoscript.view.IsViewCurrent (view)
view |
必须参数。字符串或 Guid。视图的名称或 ID 。 |
布尔值 |
True 或 False 表示计算完成或失败。 |
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."