Arch: add BIM_Classification command before make use of it

This commit is contained in:
Bernd Hahnebach
2021-02-15 14:30:04 +01:00
parent 335cc13d48
commit b44075912a

View File

@@ -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)