判断一个工具列收藏夹是否已打开。
rhinoscriptsyntax.IsToolbarCollection(file)
rhinoscript.toolbar.IsToolbarCollection(file)
file |
必须参数。字符串。要判断的工具列收藏夹文件的完整路径。 |
字符串 |
执行成功,返回 Rhino 为工具列收藏夹分配的名称。 |
None |
如果执行不成功或出错,返回空值。 |
import rhinoscriptsyntax as rs
file = "C:\\SteveBaer\\AppData\\Roaming\\McNeel\\Rhinoceros\\5.0\\UI\\default.rui"
name = rs.IsToolbarCollection(file)
if name: print "The default toolbar collection is loaded."
else: print "The default toolbar collection is not loaded."