List all commands and aliases to text file?

i’d like to get a list of ALL the available commands. aliases, native, plugins…

i’ve got this snippet that lists plugin commands, easy to change?

import Rhino
plugins = Rhino.PlugIns.PlugIn.GetInstalledPlugIns()

for item in plugins:
   id = item.Key
   name = item.Value
   print name
   commands = Rhino.PlugIns.PlugIn.GetEnglishCommandNames(id)
   for command in commands:
       print "  - ", command

For aliases you could add


To get the macro associated with an alias you can use:


Not sure you really want ‘native’ though, there are are over 1000…

damn my scripting sucks, i can’t even incorporate this simple change :expressionless:

what if i did want the whole shebang?

thanks mitch

import Rhino

for name in aliases:
    print "Alias: {} | Macro: {}".format(name,macro)
for item in all_rhino_commands: print item
print "Total number of Rhino commands = {}".format(len(all_rhino_commands))
(answer: 1230)

1 Like