diff --git a/src/blenderbim/blenderbim/bim/import_ifc.py b/src/blenderbim/blenderbim/bim/import_ifc.py index 8df3053d74..1bc1536d52 100644 --- a/src/blenderbim/blenderbim/bim/import_ifc.py +++ b/src/blenderbim/blenderbim/bim/import_ifc.py @@ -280,8 +280,12 @@ class IfcImporter: ] if self.body_contexts: self.settings.set_context_ids(self.body_contexts) + # Annotation is to accommodate broken Revit files + # See https://github.com/Autodesk/revit-ifc/issues/187 self.plan_contexts = [ - c.id() for c in self.file.by_type("IfcGeometricRepresentationContext") if c.ContextType == "Plan" + c.id() + for c in self.file.by_type("IfcGeometricRepresentationContext") + if c.ContextType in ["Plan", "Annotation"] ] if self.plan_contexts: self.settings_2d.set_context_ids(self.plan_contexts)