From 28ee1a77816682c7a707e505c10ee44559480654 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 15 Aug 2024 17:13:37 +0500 Subject: [PATCH] bonsai - dropdown for new bcf topic labels (same as f1db51df1a) --- src/bonsai/bonsai/bim/module/bcf/prop.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/bcf/prop.py b/src/bonsai/bonsai/bim/module/bcf/prop.py index f063daa64b..a2f2220dee 100644 --- a/src/bonsai/bonsai/bim/module/bcf/prop.py +++ b/src/bonsai/bonsai/bim/module/bcf/prop.py @@ -200,7 +200,9 @@ class BCFProperties(PropertyGroup): file_ifc_project: StringProperty(default="", name="IFC Project") file_ifc_spatial_structure_element: StringProperty(default="", name="IFC Spatial Structure Element") reference_link: StringProperty(default="", name="Reference Link") - label: StringProperty(default="", name="Label") + label: StringProperty( + default="", name="Label", search=lambda s, c, t: get_extensions_items(s, c, t, extensions_attr="topic_labels") + ) bim_snippet_reference: StringProperty(default="", name="Reference") bim_snippet_type: StringProperty( default="", name="Type", search=lambda s, c, t: get_extensions_items(s, c, t, extensions_attr="snippet_types")