diff --git a/src/RhinoInside.Revit.GH/Types/HostObjects/HostObject.cs b/src/RhinoInside.Revit.GH/Types/HostObjects/HostObject.cs index a683b02d3..0d66a4d7b 100644 --- a/src/RhinoInside.Revit.GH/Types/HostObjects/HostObject.cs +++ b/src/RhinoInside.Revit.GH/Types/HostObjects/HostObject.cs @@ -87,7 +87,8 @@ internal bool SetSlabShape(IList points, IList creases, out IList skipedPoints = new List(); skipedCreases = new List(); - using (var shape = host.GetSlabShapeEditor()) + var shape = host.GetSlabShapeEditor(); + using (shape as IDisposable) // ARDB.SlabShapeEditor is IDisposable since Revit 2023 { shape.ResetSlabShape(); host.Document.Regenerate();