Returns the names of all toolbars (or toolbar groups) found in a currently open toolbar collection file.
rhinoscriptsyntax.ToolbarNames(name, groups=False)
rhinoscript.toolbar.ToolbarNames(name, groups=False)
name |
Required. String. The name of a currently open toolbar collection. |
groups |
Optional. Boolean, If True, the names of the toolbar groups in the collection |
List |
The names of all toolbars (or toolbar groups) in the toolbar collection if successful. |
None |
If not successful, or on error. |
import rhinoscriptsytax as rs
names = rs.ToolbarCollectionNames()
if names:
toolbars = rs.ToolbarNames(names[0])
if toolbars:
for toolbar in toolbars: print toolbar