mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +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 == "-":
|
if mesh_props.item_profile == "-":
|
||||||
op = row.operator("bim.name_profile", text="", icon="TAG")
|
op = row.operator("bim.name_profile", text="", icon="TAG")
|
||||||
op.extrusion_item_obj = obj.name
|
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:
|
for item_attribute in mesh_props.item_attributes:
|
||||||
row = cls.layout.row()
|
row = cls.layout.row()
|
||||||
|
|||||||
@@ -342,7 +342,7 @@ class SelectProfileInProfilesUI(bpy.types.Operator):
|
|||||||
props.active_profile_index = profile_index
|
props.active_profile_index = profile_index
|
||||||
self.report(
|
self.report(
|
||||||
{"INFO"},
|
{"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"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user