From c28c2dd0770634e08818333be141d9209ef21d40 Mon Sep 17 00:00:00 2001 From: Sigma Dimensions <79010126+myoualid@users.noreply.github.com> Date: Sun, 12 Feb 2023 00:47:54 +0100 Subject: [PATCH] BIM tool hotkey to update base quantities --- src/blenderbim/blenderbim/bim/module/model/workspace.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/blenderbim/blenderbim/bim/module/model/workspace.py b/src/blenderbim/blenderbim/bim/module/model/workspace.py index 9330888113..e7e9349351 100644 --- a/src/blenderbim/blenderbim/bim/module/model/workspace.py +++ b/src/blenderbim/blenderbim/bim/module/model/workspace.py @@ -90,6 +90,7 @@ class BimTool(WorkSpaceTool): ("bim.hotkey", {"type": "Y", "value": "PRESS", "shift": True}, {"properties": [("hotkey", "S_Y")]}), ("bim.hotkey", {"type": "D", "value": "PRESS", "alt": True}, {"properties": [("hotkey", "A_D")]}), ("bim.hotkey", {"type": "O", "value": "PRESS", "alt": True}, {"properties": [("hotkey", "A_O")]}), + ("bim.hotkey", {"type": "Q", "value": "PRESS", "shift": True}, {"properties": [("hotkey", "S_Q")]}), ) def draw_settings(context, layout, ws_tool): @@ -448,6 +449,9 @@ class Hotkey(bpy.types.Operator, tool.Ifc.Operator): def hotkey_S_A(self): bpy.ops.bim.add_constr_type_instance() + def hotkey_S_Q(self): + bpy.ops.bim.calculate_all_quantities() + def hotkey_S_C(self): if self.active_material_usage == "LAYER2": bpy.ops.bim.align_wall(align_type="CENTERLINE")