diff --git a/src/blenderbim/blenderbim/bim/module/brick/operator.py b/src/blenderbim/blenderbim/bim/module/brick/operator.py index 18b3e7bd4b..9cb9c81c63 100644 --- a/src/blenderbim/blenderbim/bim/module/brick/operator.py +++ b/src/blenderbim/blenderbim/bim/module/brick/operator.py @@ -105,6 +105,7 @@ class ConvertBrickProject(bpy.types.Operator, Operator): bl_idname = "bim.convert_brick_project" bl_label = "Convert Brick Project" bl_options = {"REGISTER", "UNDO"} + bl_description = "Create an Ifc library for this Brick project" def _execute(self, context): core.convert_brick_project(tool.Ifc, tool.Brick) @@ -114,6 +115,7 @@ class AssignBrickReference(bpy.types.Operator, Operator): bl_idname = "bim.assign_brick_reference" bl_label = "Assign Brick Reference" bl_options = {"REGISTER", "UNDO"} + bl_description = "Assign the selected Ifc entity to the selected Brick entity" def _execute(self, context): props = context.scene.BIMBrickProperties @@ -172,6 +174,7 @@ class ConvertIfcToBrick(bpy.types.Operator, Operator): bl_idname = "bim.convert_ifc_to_brick" bl_label = "Convert IFC To Brick" bl_options = {"REGISTER", "UNDO"} + bl_description = "Convert Ifc entities and relations to Brick entities and relations" def _execute(self, context): props = context.scene.BIMBrickProperties diff --git a/src/blenderbim/blenderbim/bim/module/brick/ui.py b/src/blenderbim/blenderbim/bim/module/brick/ui.py index c175ecb867..ecb8c39ac7 100644 --- a/src/blenderbim/blenderbim/bim/module/brick/ui.py +++ b/src/blenderbim/blenderbim/bim/module/brick/ui.py @@ -279,18 +279,24 @@ class BIM_PT_ifc_brickschema_references(Panel): row.label(text="No Brickschema Project Loaded") return - if not BrickschemaReferencesData.data["libraries"]: + if not BrickschemaReferencesData.data["libraries"] and BrickStore.path: row = self.layout.row(align=True) - if BrickStore.path: - row.label(text="No IFC Libraries") - row.operator("bim.convert_brick_project", text="", icon="ADD") - else: - row.label(text="No IFC Libraries. Save the Brick project to create a new library.", icon="ERROR") + row.label(text="No IFC Libraries") + row.operator("bim.convert_brick_project", text="", icon="ADD") + return + + if not BrickschemaReferencesData.data["libraries"] and not BrickStore.path: + row = self.layout.row(align=True) + row.label(text="No IFC Libraries: save the Brick project to create a new library", icon="ERROR") + + row = self.layout.row(align=True) + row.label(text="Libraries must have location pointing to a \".ttl\" file", icon="INFO") return row = self.layout.row(align=True) prop_with_search(row, self.props, "libraries") - row.operator("bim.convert_brick_project", text="", icon="ADD") + if BrickStore.path: + row.operator("bim.convert_brick_project", text="", icon="ADD") row = self.layout.row(align=True) row.operator("bim.assign_brick_reference", icon="ADD")