mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +00:00
Active Profile's inverse relationships count is now displayed in the profiles editor
This commit is contained in:
@@ -91,6 +91,10 @@ class BIM_PT_profiles(Panel):
|
|||||||
row = self.layout.row()
|
row = self.layout.row()
|
||||||
row.operator("bim.enable_editing_arbitrary_profile", text="Edit Arbitrary Profile", icon="GREASEPENCIL")
|
row.operator("bim.enable_editing_arbitrary_profile", text="Edit Arbitrary Profile", icon="GREASEPENCIL")
|
||||||
|
|
||||||
|
profile_entity = tool.Ifc.get().by_id(active_profile.ifc_definition_id)
|
||||||
|
users_of_profile = tool.Ifc.get().get_total_inverses(profile_entity)
|
||||||
|
self.layout.label(icon="INFO", text=f"Profile has {users_of_profile} inverse relationship(s) in project")
|
||||||
|
|
||||||
if self.props.active_profile_id:
|
if self.props.active_profile_id:
|
||||||
self.draw_editable_ui(context)
|
self.draw_editable_ui(context)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user