From 37a61c549f51f6b8290c6fe905fcb7834b8ed4ed Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sun, 27 Jun 2021 10:59:55 +1000 Subject: [PATCH] Accommmodate incorrect body representation contexts coming from Revit --- src/blenderbim/blenderbim/bim/import_ifc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/blenderbim/blenderbim/bim/import_ifc.py b/src/blenderbim/blenderbim/bim/import_ifc.py index ac61dac774..effb080d83 100644 --- a/src/blenderbim/blenderbim/bim/import_ifc.py +++ b/src/blenderbim/blenderbim/bim/import_ifc.py @@ -702,7 +702,9 @@ class IfcImporter: shape = iterator.get() if shape: product = self.file.by_id(shape.guid) - if shape.context != "Body" and shape.guid in IfcStore.guid_map: + # Facetation is to accommodate broken Revit files + # See https://forums.buildingsmart.org/t/suggestions-on-how-to-improve-clarity-of-representation-context-usage-in-documentation/3663/6?u=moult + if shape.context not in ["Body", "Facetation"] and shape.guid in IfcStore.guid_map: # We only load a single context, and we prioritise the Body context. See #1290. pass elif product.is_a("IfcAnnotation") and product.ObjectType == "DRAWING":