Skip to content

Commit

Permalink
ARDB.SlabShapeEditor is IDisposable since Revit 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
kike-garbo committed Jul 4, 2024
1 parent 7fe23d4 commit 4c7c3fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/RhinoInside.Revit.GH/Types/HostObjects/HostObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ internal bool SetSlabShape(IList<Point3d> points, IList<Line> creases, out IList
skipedPoints = new List<Point3d>();
skipedCreases = new List<Line>();

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();
Expand Down

0 comments on commit 4c7c3fa

Please sign in to comment.