From 052aa156b64b29b2776883c250695eb8f9f7bcc0 Mon Sep 17 00:00:00 2001 From: Kilian <86473259+ks-cph@users.noreply.github.com> Date: Tue, 15 Oct 2024 23:50:31 +0900 Subject: [PATCH] Revit Connector: Floors missing when converting linked models (#3635) Document ref changed Co-authored-by: Jedd Morgan <45512892+JR-Morgan@users.noreply.github.com> Co-authored-by: Alan Rynne --- .../ConverterRevitShared/PartialClasses/ConvertFloor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertFloor.cs b/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertFloor.cs index 6bfb1007bd..2053d04daa 100644 --- a/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertFloor.cs +++ b/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertFloor.cs @@ -175,7 +175,7 @@ private RevitFloor FloorToSpeckle(DB.Floor revitFloor, out List notes) #if REVIT2020 || REVIT2021 var profiles = GetProfiles(revitFloor); #else - var sketch = Doc.GetElement(revitFloor.SketchId) as Sketch; + var sketch = revitFloor.Document.GetElement(revitFloor.SketchId) as Sketch; var profiles = GetSketchProfiles(sketch).Cast().ToList(); #endif var type = revitFloor.Document.GetElement(revitFloor.GetTypeId()) as ElementType;