Closes a currently open toolbar collection.
rhinoscriptsyntax.CloseToolbarCollection(name, prompt=False)
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. |
Boolean |
True or False indicating success or failure. |
None |
On error. |
import rhinoscriptsyntax as rs
names = rs.ToolbarCollectionNames()
if names:
for name in names: rs.CloseToolbarCollection( name, True )