New UI in Blender to run IFCPatch

This commit is contained in:
Dion Moult
2020-08-05 17:18:10 +10:00
parent 277786771c
commit b60438b51c
5 changed files with 113 additions and 0 deletions
+30
View File
@@ -1469,6 +1469,36 @@ class BIM_PT_cobie(Panel):
op.file_format = 'xlsx'
class BIM_PT_patch(Panel):
bl_label = "IFC Patch"
bl_idname = "BIM_PT_patch"
bl_options = {'DEFAULT_CLOSED'}
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
bl_context = "scene"
def draw(self, context):
layout = self.layout
layout.use_property_split = True
scene = context.scene
props = scene.BIMProperties
row = layout.row()
row.prop(props, 'ifc_patch_recipes')
row = layout.row(align=True)
row.prop(props, 'ifc_patch_input')
row.operator("bim.select_ifc_patch_input", icon="FILE_FOLDER", text="")
row = layout.row(align=True)
row.prop(props, 'ifc_patch_output')
row.operator("bim.select_ifc_patch_output", icon="FILE_FOLDER", text="")
row = layout.row()
row.prop(props, 'ifc_patch_args')
row = layout.row()
op = row.operator('bim.execute_ifc_patch')
class BIM_PT_mvd(Panel):
bl_label = "Model View Definitions (MVD)"
bl_idname = "BIM_PT_mvd"