mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
filter diff with IFCSelector
This commit is contained in:
@@ -115,6 +115,7 @@ class ExecuteIfcDiff(bpy.types.Operator):
|
||||
context.scene.DiffProperties.diff_new_file,
|
||||
self.filepath,
|
||||
context.scene.DiffProperties.diff_relationships.split(),
|
||||
context.scene.DiffProperties.diff_filter_elements,
|
||||
)
|
||||
ifc_diff.diff()
|
||||
ifc_diff.export()
|
||||
|
||||
@@ -36,3 +36,4 @@ class DiffProperties(PropertyGroup):
|
||||
diff_old_file: StringProperty(default="", name="Diff Old IFC File")
|
||||
diff_new_file: StringProperty(default="", name="Diff New IFC File")
|
||||
diff_relationships: StringProperty(default="", name="Diff Relationships")
|
||||
diff_filter_elements: StringProperty(default="", name="Diff Filter")
|
||||
|
||||
@@ -48,6 +48,9 @@ class BIM_PT_diff(Panel):
|
||||
|
||||
row = layout.row(align=True)
|
||||
row.prop(bim_properties, "diff_relationships")
|
||||
|
||||
row = layout.row(align=True)
|
||||
row.prop(bim_properties, "diff_filter_elements")
|
||||
|
||||
row = layout.row()
|
||||
row.operator("bim.execute_ifc_diff")
|
||||
|
||||
Reference in New Issue
Block a user