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