From 04943731553654c1cfaac81309061249087d08da Mon Sep 17 00:00:00 2001 From: Gorgious56 Date: Fri, 28 Oct 2022 11:53:23 +0200 Subject: [PATCH] Store Ifc class in attribute This shouldn't be necessary ? but it's easier for now --- src/blenderbim/blenderbim/bim/helper.py | 1 + src/blenderbim/blenderbim/bim/prop.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/blenderbim/blenderbim/bim/helper.py b/src/blenderbim/blenderbim/bim/helper.py index 7f0440f7d4..3a0a08d677 100644 --- a/src/blenderbim/blenderbim/bim/helper.py +++ b/src/blenderbim/blenderbim/bim/helper.py @@ -115,6 +115,7 @@ def import_attribute(attribute, props, data, callback=None): description = get_attribute_description(data["type"], attribute.name()) if description: new.description = description + new.ifc_class = data["type"] def export_attributes(props, callback=None): diff --git a/src/blenderbim/blenderbim/bim/prop.py b/src/blenderbim/blenderbim/bim/prop.py index c7c27c1dbd..9a4e34c598 100644 --- a/src/blenderbim/blenderbim/bim/prop.py +++ b/src/blenderbim/blenderbim/bim/prop.py @@ -259,6 +259,7 @@ def update_attribute_value(self, context): class Attribute(PropertyGroup): name: StringProperty(name="Name") description: StringProperty(name="Description") + ifc_class: StringProperty(name="Ifc Class") data_type: StringProperty(name="Data Type") string_value: StringProperty(name="Value", update=update_attribute_value) bool_value: BoolProperty(name="Value", update=update_attribute_value)