diff --git a/src/blenderbim/blenderbim/bim/module/spatial/__init__.py b/src/blenderbim/blenderbim/bim/module/spatial/__init__.py index aa83b82d63..f50d37d906 100644 --- a/src/blenderbim/blenderbim/bim/module/spatial/__init__.py +++ b/src/blenderbim/blenderbim/bim/module/spatial/__init__.py @@ -28,6 +28,7 @@ classes = ( operator.RemoveContainer, operator.SelectContainer, operator.SelectSimilarContainer, + operator.BIM_OT_building_storey_add, prop.SpatialElement, prop.BIMSpatialProperties, prop.BIMObjectSpatialProperties, diff --git a/src/blenderbim/blenderbim/bim/module/spatial/operator.py b/src/blenderbim/blenderbim/bim/module/spatial/operator.py index 185a46b6ca..346b1e7d35 100644 --- a/src/blenderbim/blenderbim/bim/module/spatial/operator.py +++ b/src/blenderbim/blenderbim/bim/module/spatial/operator.py @@ -121,3 +121,13 @@ class SelectSimilarContainer(bpy.types.Operator, Operator): def _execute(self, context): core.select_similar_container(tool.Ifc, tool.Spatial, obj=context.active_object) + + +class BIM_OT_building_storey_add(bpy.types.Operator, Operator): + bl_idname = "bim.building_storey_add" + bl_label = "Add Storey" + bl_options = {"REGISTER", "UNDO"} + building_name: bpy.props.StringProperty() + + def _execute(self, context): + core.add_storey_to_building(tool.Ifc, tool.Spatial, obj=context.active_object)