public void Start(ServiceManager serviceManager) { CommandManager commandManager = (CommandManager)serviceManager.GetService(typeof(CommandManager)); ExportModelCommand showCommand = new ExportModelCommand(); commandManager.Commands.Add(showCommand); CommandBarManager commandBarManager = (CommandBarManager)serviceManager.GetService(typeof(CommandBarManager)); CommandBar commandBar = commandBarManager.CommandBars.AddCommandBar("Export Model"); commandBarManager.RootTools.AddButtonTool(showCommand.Key, "Export Model", null, showCommand); commandBar.Tools.AddTool(showCommand.Key); }