diff --git a/ConnectorRevit/ConnectorRevit/TypeMapping/ElementTypeMapper.cs b/ConnectorRevit/ConnectorRevit/TypeMapping/ElementTypeMapper.cs index 0f7467e700..90360074fe 100644 --- a/ConnectorRevit/ConnectorRevit/TypeMapping/ElementTypeMapper.cs +++ b/ConnectorRevit/ConnectorRevit/TypeMapping/ElementTypeMapper.cs @@ -162,7 +162,7 @@ await Dispatcher.UIThread.InvokeAsync(() => { try { - familyImporter ??= new FamilyImporter(document, revitCategoriesExposer, typeRetriever); + familyImporter ??= new FamilyImporter(document, revitCategoriesExposer, typeRetriever, revitDocumentAggregateCache); await familyImporter.ImportFamilyTypes(hostTypesContainer).ConfigureAwait(false); } catch (SpeckleException ex) diff --git a/ConnectorRevit/ConnectorRevit/TypeMapping/FamilyImporter.cs b/ConnectorRevit/ConnectorRevit/TypeMapping/FamilyImporter.cs index c253a1d602..d339077d30 100644 --- a/ConnectorRevit/ConnectorRevit/TypeMapping/FamilyImporter.cs +++ b/ConnectorRevit/ConnectorRevit/TypeMapping/FamilyImporter.cs @@ -25,11 +25,12 @@ internal sealed class FamilyImporter private readonly IRevitElementTypeRetriever typeRetriever; private readonly IRevitDocumentAggregateCache revitDocumentAggregateCache; - public FamilyImporter(Document document, IAllRevitCategoriesExposer revitCategoriesExposer, IRevitElementTypeRetriever typeRetriever) + public FamilyImporter(Document document, IAllRevitCategoriesExposer revitCategoriesExposer, IRevitElementTypeRetriever typeRetriever, IRevitDocumentAggregateCache revitDocumentAggregateCache) { this.document = document; this.revitCategoriesExposer = revitCategoriesExposer; this.typeRetriever = typeRetriever; + this.revitDocumentAggregateCache = revitDocumentAggregateCache; } ///