返回一个已打开工具列收藏夹文件中所有工具列或工具列组的名称。
rhinoscriptsyntax.ToolbarNames(name, groups=False)
rhinoscript.toolbar.ToolbarNames(name, groups=False)
name |
必须参数。字符串。当前打开工具列收藏夹的名称。 |
groups |
可选参数。布尔值,如果为True,返回收藏夹中工具列组的名称。 |
列表 |
工具列收藏夹中所有工具列(或工具列组)的名称。 |
None |
如果执行不成功或出错,返回空值。 |
import rhinoscriptsytax as rs
names = rs.ToolbarCollectionNames()
if names:
toolbars = rs.ToolbarNames(names[0])
if toolbars:
for toolbar in toolbars: print toolbar