mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 21:38:12 +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())
|
description = get_attribute_description(data["type"], attribute.name())
|
||||||
if description:
|
if description:
|
||||||
new.description = description
|
new.description = description
|
||||||
|
new.ifc_class = data["type"]
|
||||||
|
|
||||||
|
|
||||||
def export_attributes(props, callback=None):
|
def export_attributes(props, callback=None):
|
||||||
|
|||||||
@@ -259,6 +259,7 @@ def update_attribute_value(self, context):
|
|||||||
class Attribute(PropertyGroup):
|
class Attribute(PropertyGroup):
|
||||||
name: StringProperty(name="Name")
|
name: StringProperty(name="Name")
|
||||||
description: StringProperty(name="Description")
|
description: StringProperty(name="Description")
|
||||||
|
ifc_class: StringProperty(name="Ifc Class")
|
||||||
data_type: StringProperty(name="Data Type")
|
data_type: StringProperty(name="Data Type")
|
||||||
string_value: StringProperty(name="Value", update=update_attribute_value)
|
string_value: StringProperty(name="Value", update=update_attribute_value)
|
||||||
bool_value: BoolProperty(name="Value", update=update_attribute_value)
|
bool_value: BoolProperty(name="Value", update=update_attribute_value)
|
||||||
|
|||||||
Reference in New Issue
Block a user