mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Quick to select profile from BIM Tool in Profile UI
Example - https://imgur.com/a/tJdQUGq
This commit is contained in:
@@ -406,6 +406,9 @@ class EditItemUI:
|
||||
if mesh_props.item_profile == "-":
|
||||
op = row.operator("bim.name_profile", text="", icon="TAG")
|
||||
op.extrusion_item_obj = obj.name
|
||||
else:
|
||||
op = row.operator("bim.profiles_ui_select", icon="ZOOM_SELECTED", text="")
|
||||
op.profile_id = int(mesh_props.item_profile)
|
||||
|
||||
for item_attribute in mesh_props.item_attributes:
|
||||
row = cls.layout.row()
|
||||
|
||||
@@ -342,7 +342,7 @@ class SelectProfileInProfilesUI(bpy.types.Operator):
|
||||
props.active_profile_index = profile_index
|
||||
self.report(
|
||||
{"INFO"},
|
||||
f"Profile '{profile.Name or 'Unnamed'}' is selected in Profiles UI.",
|
||||
f"Profile '{profile.ProfileName or 'Unnamed'}' is selected in Profiles UI.",
|
||||
)
|
||||
return {"FINISHED"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user