Method AddTo
AddTo(CadCommandRegistry)
Adds the commands to a registry, and their aliases to its shortcuts. A command whose name is already a command or an alias of the registry is left out, and so is an alias already taken; each is said in the lines returned.
public IReadOnlyList<string> AddTo(CadCommandRegistry registry)
Parameters
registryCadCommandRegistryThe registry, as a CadCommandSession of a drawing has it.
Returns
- IReadOnlyList<string>
What was left out, a line each; empty when every command and alias was added.
Exceptions
- ArgumentNullException
Thrown when the registry is null.
- InvalidOperationException
Thrown when the plugin is unloaded, or already added to the registry.