diff --git a/Source/Revit.IFC.Import/Importer.cs b/Source/Revit.IFC.Import/Importer.cs
index ae19ffd2..2d168f2a 100644
--- a/Source/Revit.IFC.Import/Importer.cs
+++ b/Source/Revit.IFC.Import/Importer.cs
@@ -439,8 +439,10 @@ private bool DocumentUpToDate(Document doc, string ifcFileName)
/// The host document for the import.
/// The full file name of the document.
/// The list of configurable options for this import.
- public void ReferenceIFC(Document document, string origFullFileName, IDictionary options)
+ public void ReferenceIFC(Document document, string origFullFileName, IDictionary options, out ElementId revitLinkTypeId)
{
+ revitLinkTypeId = ElementId.InvalidElementId;
+
// We need to generate a local file name for all of the intermediate files (the log file, the cache file, and the shared parameters file).
string localFileName = ImporterIFCUtils.GetLocalFileName(document, origFullFileName);
if (localFileName == null)
@@ -506,7 +508,7 @@ public void ReferenceIFC(Document document, string origFullFileName, IDictionary
// If we have an original Revit link file name, don't create a new RevitLinkType -
// we will use the existing one.
bool useExistingType = (TheOptions.RevitLinkFileName != null);
- ElementId revitLinkTypeId = IFCImportFile.LinkInFile(origFullFileName, localFileName, ifcDocument, originalDocument, useExistingType, !useCachedRevitFile);
+ revitLinkTypeId = IFCImportFile.LinkInFile(origFullFileName, localFileName, ifcDocument, originalDocument, useExistingType, !useCachedRevitFile);
}
}