mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 18:57:17 +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,
|
context.scene.DiffProperties.diff_new_file,
|
||||||
self.filepath,
|
self.filepath,
|
||||||
context.scene.DiffProperties.diff_relationships.split(),
|
context.scene.DiffProperties.diff_relationships.split(),
|
||||||
|
context.scene.DiffProperties.diff_filter_elements,
|
||||||
)
|
)
|
||||||
ifc_diff.diff()
|
ifc_diff.diff()
|
||||||
ifc_diff.export()
|
ifc_diff.export()
|
||||||
|
|||||||
@@ -36,3 +36,4 @@ class DiffProperties(PropertyGroup):
|
|||||||
diff_old_file: StringProperty(default="", name="Diff Old IFC File")
|
diff_old_file: StringProperty(default="", name="Diff Old IFC File")
|
||||||
diff_new_file: StringProperty(default="", name="Diff New IFC File")
|
diff_new_file: StringProperty(default="", name="Diff New IFC File")
|
||||||
diff_relationships: StringProperty(default="", name="Diff Relationships")
|
diff_relationships: StringProperty(default="", name="Diff Relationships")
|
||||||
|
diff_filter_elements: StringProperty(default="", name="Diff Filter")
|
||||||
|
|||||||
@@ -49,6 +49,9 @@ class BIM_PT_diff(Panel):
|
|||||||
row = layout.row(align=True)
|
row = layout.row(align=True)
|
||||||
row.prop(bim_properties, "diff_relationships")
|
row.prop(bim_properties, "diff_relationships")
|
||||||
|
|
||||||
|
row = layout.row(align=True)
|
||||||
|
row.prop(bim_properties, "diff_filter_elements")
|
||||||
|
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.operator("bim.execute_ifc_diff")
|
row.operator("bim.execute_ifc_diff")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user