CloseToolbarCollection

Closes a currently open toolbar collection.

Syntax

rhinoscriptsyntax.CloseToolbarCollection(name, prompt=False)

Parameters

name

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

prompt

Optional.  Boolean.  If True,  then the user will be prompted to save the collection file if it has been modified prior to closing.  If False, then the collection file is closed without saving.  The default value is False.

Returns

Boolean

True or False indicating success or failure.

None

On error.

Example

import rhinoscriptsyntax as rs

names = rs.ToolbarCollectionNames()

if names:

    for name in names: rs.CloseToolbarCollection( name, True )

Also See

IsToolbarCollection

OpenToolbarCollection

ToolbarCollectionCount

ToolbarCollectionNames

ToolbarCollectionPath