diff --git a/gui.py b/gui.py index 7ca16f7..55263c6 100644 --- a/gui.py +++ b/gui.py @@ -557,6 +557,7 @@ class AsmCmdGotoRelation(AsmCmdBase): _tooltip = 'Select the corresponding part object in the relation group' _iconName = 'Assembly_GotoRelation.svg' _accel = 'A, R' + _toolbarName = '' @classmethod def Activated(cls): diff --git a/init_gui.py b/init_gui.py index dd8fd03..16f325d 100644 --- a/init_gui.py +++ b/init_gui.py @@ -38,14 +38,15 @@ class Assembly3Workbench(FreeCADGui.Workbench): def Initialize(self): from .mover import AsmDocumentObserver - from .gui import AsmCmdManager + from .gui import AsmCmdManager,AsmCmdGotoRelation AsmCmdManager.init() cmdSet = set() for name,cmds in AsmCmdManager.Toolbars.items(): cmdSet.update(cmds) self.appendToolbar(name,[cmd.getName() for cmd in cmds]) - self.appendToolbar('Assembly3 Selection', ["Std_SelBack", - "Std_SelForward","Std_LinkSelectLinked","Std_LinkSelectLinkedFinal", + self.appendToolbar('Assembly3 Navigation', ["Std_SelBack", + "Std_SelForward",AsmCmdGotoRelation.getName(), + "Std_LinkSelectLinked", "Std_LinkSelectLinkedFinal", "Std_LinkSelectAllLinks","Std_TreeSelectAllInstances"]) for name,cmds in AsmCmdManager.Menus.items(): cmdSet.update(cmds)