diff --git a/src/ifcblenderexport/blenderbim/bim/module/geometry/data.py b/src/ifcblenderexport/blenderbim/bim/module/geometry/data.py index 5eaaba6cf8..6957e9f2e6 100644 --- a/src/ifcblenderexport/blenderbim/bim/module/geometry/data.py +++ b/src/ifcblenderexport/blenderbim/bim/module/geometry/data.py @@ -17,9 +17,12 @@ class Data: return cls.products[product_id] = [] product = file.by_id(product_id) - if not hasattr(product, "Representation") or not product.Representation: - return - for representation in product.Representation.Representations: + representations = [] + if product.is_a("IfcProduct"): + representations = product.Representation.Representations + elif product.is_a("IfcTypeProduct"): + representations = [rm.MappedRepresentation for rm in product.RepresentationMaps] + for representation in representations: c = representation.ContextOfItems rep_id = int(representation.id()) cls.representations[rep_id] = {