Verifies that a toolbar collection is open.
rhinoscriptsyntax.IsToolbarCollection(file)
rhinoscript.toolbar.IsToolbarCollection(file)
file |
Required. String. The full path to the toolbar collection file to verify. |
String |
The Rhino-assigned name of the toolbar collection if successful.. |
None |
If not successful, or on error. |
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."