ToolbarNames

Returns the names of all toolbars (or toolbar groups) found in a currently open toolbar collection file.

Syntax

rhinoscriptsyntax.ToolbarNames(name, groups=False)

rhinoscript.toolbar.ToolbarNames(name, groups=False)

Parameters

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

Returns

List

The names of all toolbars (or toolbar groups) in the toolbar collection if successful.

None

If not successful, or on error.

Example

import rhinoscriptsytax as rs

names = rs.ToolbarCollectionNames()

if names:

    toolbars = rs.ToolbarNames(names[0])

    if toolbars:

        for toolbar in toolbars: print toolbar

Also See

HideToolbar

IsToolbar

IsToolbarVisible

ShowToolbar

ToolbarCount