mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
Operator to add new storey to building
This commit is contained in:
@@ -28,6 +28,7 @@ classes = (
|
|||||||
operator.RemoveContainer,
|
operator.RemoveContainer,
|
||||||
operator.SelectContainer,
|
operator.SelectContainer,
|
||||||
operator.SelectSimilarContainer,
|
operator.SelectSimilarContainer,
|
||||||
|
operator.BIM_OT_building_storey_add,
|
||||||
prop.SpatialElement,
|
prop.SpatialElement,
|
||||||
prop.BIMSpatialProperties,
|
prop.BIMSpatialProperties,
|
||||||
prop.BIMObjectSpatialProperties,
|
prop.BIMObjectSpatialProperties,
|
||||||
|
|||||||
@@ -121,3 +121,13 @@ class SelectSimilarContainer(bpy.types.Operator, Operator):
|
|||||||
|
|
||||||
def _execute(self, context):
|
def _execute(self, context):
|
||||||
core.select_similar_container(tool.Ifc, tool.Spatial, obj=context.active_object)
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user