IsToolbarCollection

Verifies that a toolbar collection is open.

Syntax

rhinoscriptsyntax.IsToolbarCollection(file)

rhinoscript.toolbar.IsToolbarCollection(file)

Parameters

file

Required.  String.  The full path to the toolbar collection file to verify.

Returns

String

The Rhino-assigned name of the toolbar collection if successful..

None

If not successful, or 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: print "The default toolbar collection is loaded."

else: print "The default toolbar collection is not loaded."

Also See

CloseToolbarCollection

OpenToolbarCollection

ToolbarCollectionCount

ToolbarCollectionNames

ToolbarCollectionPath