From 81b5fc30c7d54f265de0f96f6af4bc328a69469d Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 28 Mar 2025 15:28:07 +0500 Subject: [PATCH] template_file - add a note --- src/bonsai/bonsai/bim/module/project/prop.py | 8 +++++++- src/bonsai/bonsai/core/project.py | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/project/prop.py b/src/bonsai/bonsai/bim/module/project/prop.py index 3d57a7b926..51118f8ae0 100644 --- a/src/bonsai/bonsai/bim/module/project/prop.py +++ b/src/bonsai/bonsai/bim/module/project/prop.py @@ -368,7 +368,13 @@ class BIMProjectProperties(PropertyGroup): links: CollectionProperty(name="Links", type=Link) active_link_index: IntProperty(name="Active Link Index") export_schema: EnumProperty(items=get_export_schema, name="IFC Schema", update=update_export_schema) - template_file: EnumProperty(items=get_template_file, name="Template File") + template_file: EnumProperty( + items=get_template_file, + name="Template File", + description=( + "Template to use for a new project. All types from the template will be appended to a new project)." + ), + ) # Project library UI. library_file: EnumProperty(items=get_library_file, name="Library File", update=update_library_file) diff --git a/src/bonsai/bonsai/core/project.py b/src/bonsai/bonsai/core/project.py index 5497d93c58..c222696ad7 100644 --- a/src/bonsai/bonsai/core/project.py +++ b/src/bonsai/bonsai/core/project.py @@ -36,6 +36,9 @@ def create_project( if ifc.get(): return + # TODO: simplify by generating IFC file and then just import it using IfcImporter + # instead of handling Blender objects logic here? + ifc.set(ifc.run("project.create_file", version=schema)) if schema == "IFC2X3":