IsToolbarVisible

Verifies that a toolbar group in a currently open toolbar collection is visible.

Syntax

rhinoscriptsyntax.IsToolbarVisible(name, toolbar_group)

rhinoscript.toolbar.IsToolbarVisible(name, toolbar_group)

Parameters

name

Required.  String.  The name of a currently open toolbar collection.

toolbar_group

Required.  String.  The name of a toolbar group in the collection to verify.

Returns

Boolean

True or false indicating success or failure.

None

On error.

Example

import rhinoscriptsyntax as rs

file = "C:\\SteveBaer\\AppData\\Roaming\\McNeel\\Rhinoceros\\5.0\\UI\\default.rui"

name = rs.IsToolbarCollection(file)

if name:

    if rs.IsToolbarVisible(name, "Layer"): print "The Layer toolbar is visible."

    else: print "The Layer toolbar is not visible."

Also See

HideToolbar

IsToolbar

ShowToolbar

ToolbarCount

ToolbarNames