mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +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.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:
|
||||
self.draw_editable_ui(context)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user