mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-29 11:46:33 +00:00
New UI in Blender to run IFCPatch
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user