From b44075912a0dd54deb30c80a82bec2f5c94ba8bf Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Mon, 15 Feb 2021 14:30:04 +0100 Subject: [PATCH] Arch: add BIM_Classification command before make use of it --- src/Mod/Arch/ArchComponent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/Arch/ArchComponent.py b/src/Mod/Arch/ArchComponent.py index 6207ca7db6..46a4fdbed7 100644 --- a/src/Mod/Arch/ArchComponent.py +++ b/src/Mod/Arch/ArchComponent.py @@ -1726,6 +1726,8 @@ class ComponentTaskPanel: self.classButton.hide() else: import os + # the BIM_Classification command needs to be added before it can be used + FreeCADGui.activateWorkbench("BIMWorkbench") self.classButton.setIcon(QtGui.QIcon(os.path.join(os.path.dirname(BimClassification.__file__),"icons","BIM_Classification.svg"))) QtCore.QObject.connect(self.addButton, QtCore.SIGNAL("clicked()"), self.addElement)