mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 11:18:18 +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):
|
def get_classification_references(self):
|
||||||
results = {}
|
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:
|
for reference in product['raw'].BIMObjectProperties.classifications:
|
||||||
results[reference.name] = {
|
results[reference.name] = {
|
||||||
'ifc': None,
|
'ifc': None,
|
||||||
|
|||||||
Reference in New Issue
Block a user