mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
declaration as property
This commit is contained in:
@@ -615,7 +615,7 @@ class Usecase:
|
||||
nonlocal attributes_
|
||||
if attributes_ is not None:
|
||||
return attributes_
|
||||
attributes_ = element.declaration().as_entity().all_attributes()
|
||||
attributes_ = element.declaration.all_attributes()
|
||||
return attributes_
|
||||
|
||||
def get_existing_element_(
|
||||
|
||||
@@ -81,7 +81,7 @@ class Usecase:
|
||||
self.style = style
|
||||
|
||||
attribute_types: dict[str, str] = {}
|
||||
for attribute in style.declaration().as_entity().all_attributes():
|
||||
for attribute in style.declaration.all_attributes():
|
||||
attribute_type = attribute.type_of_attribute()
|
||||
if attribute_type.as_aggregation_type() is None:
|
||||
attribute_type = attribute_type.declared_type().name()
|
||||
|
||||
Reference in New Issue
Block a user