mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
Fix export of classifications if they are only applied to a type or spatial element, not a regular element. See #1031.
This commit is contained in:
@@ -651,7 +651,9 @@ class IfcParser():
|
||||
|
||||
def get_classification_references(self):
|
||||
results = {}
|
||||
for product in self.selected_products:
|
||||
for product in self.selected_products \
|
||||
+ self.selected_types \
|
||||
+ self.selected_spatial_structure_elements:
|
||||
for reference in product['raw'].BIMObjectProperties.classifications:
|
||||
results[reference.name] = {
|
||||
'ifc': None,
|
||||
|
||||
Reference in New Issue
Block a user