mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 05:46:51 +00:00
clash ui - add basic header for the found clashes
Example - https://i.imgur.com/JjKIUZX.png Also show indices, so it will be easier to communicate a specific clash to someone.
This commit is contained in:
@@ -155,6 +155,14 @@ class BIM_PT_ifcclash(Panel):
|
|||||||
col.alignment = "RIGHT"
|
col.alignment = "RIGHT"
|
||||||
col.prop(clash_set, "clashes_loaded", text="", icon="TRASH", invert_checkbox=True)
|
col.prop(clash_set, "clashes_loaded", text="", icon="TRASH", invert_checkbox=True)
|
||||||
|
|
||||||
|
split = layout.split(factor=0.07, align=True)
|
||||||
|
split.label(text="#")
|
||||||
|
|
||||||
|
row = split.row(align=True)
|
||||||
|
row.label(text="Group A Element")
|
||||||
|
row.label(text="Group B Element")
|
||||||
|
row.label(text="Type")
|
||||||
|
|
||||||
layout.template_list("BIM_UL_clashes", "", props.active_clash_set, "clashes", props, "active_clash_index")
|
layout.template_list("BIM_UL_clashes", "", props.active_clash_set, "clashes", props, "active_clash_index")
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.operator("bim.select_clash")
|
row.operator("bim.select_clash")
|
||||||
@@ -262,14 +270,21 @@ class BIM_UL_clashes(bpy.types.UIList):
|
|||||||
icon,
|
icon,
|
||||||
active_data,
|
active_data,
|
||||||
active_propname,
|
active_propname,
|
||||||
|
index,
|
||||||
|
fit_flag,
|
||||||
) -> None:
|
) -> None:
|
||||||
if item:
|
if item:
|
||||||
row = layout.row(align=False)
|
split = layout.split(factor=0.05, align=True)
|
||||||
|
split.label(text=str(index + 1))
|
||||||
|
|
||||||
|
row = split.row(align=False)
|
||||||
row.label(text=str(item.a_name), translate=False, icon="NONE", icon_value=0)
|
row.label(text=str(item.a_name), translate=False, icon="NONE", icon_value=0)
|
||||||
row.label(text=str(item.b_name), translate=False, icon="NONE", icon_value=0)
|
row.label(text=str(item.b_name), translate=False, icon="NONE", icon_value=0)
|
||||||
|
|
||||||
col = row.column()
|
col = row.column()
|
||||||
col.enabled = False
|
col.enabled = False
|
||||||
col.prop(item, "clash_type", text="")
|
col.prop(item, "clash_type", text="")
|
||||||
|
|
||||||
row.prop(item, "status", text="")
|
row.prop(item, "status", text="")
|
||||||
else:
|
else:
|
||||||
layout.label(text="", translate=False)
|
layout.label(text="", translate=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user