mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 03:14:23 +00:00
Store Ifc class in attribute
This shouldn't be necessary ? but it's easier for now
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user