Skip to content

Commit

Permalink
Revit Connector: Floors missing when converting linked models (#3635)
Browse files Browse the repository at this point in the history
Document ref changed

Co-authored-by: Jedd Morgan <[email protected]>
Co-authored-by: Alan Rynne <[email protected]>
  • Loading branch information
3 people authored Oct 15, 2024
1 parent fa2d92e commit 052aa15
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private RevitFloor FloorToSpeckle(DB.Floor revitFloor, out List<string> 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<ICurve>().ToList();
#endif
var type = revitFloor.Document.GetElement(revitFloor.GetTypeId()) as ElementType;
Expand Down

0 comments on commit 052aa15

Please sign in to comment.