integrate Revit 2025 SDK

This commit is contained in:
Jeremy Tammik
2024-04-11 13:47:20 +02:00
parent e786953544
commit f414362f2b
889 changed files with 26676 additions and 26865 deletions
@@ -31,7 +31,7 @@ namespace Revit.SDK.Samples.NewPathReinforcement.CS
/// <summary>
/// tool used to draw line
/// </summary>
public class LineTool
public class LineTool : IDisposable
{
# region members
private List<Point> m_points = new List<Point>(); // Field used to store points of a line
@@ -140,5 +140,20 @@ namespace Revit.SDK.Samples.NewPathReinforcement.CS
graphic.DrawLine(m_foreGroundPen, m_points[i], m_points[i + 1]);
}
}
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
m_backGroundPen?.Dispose();
m_foreGroundPen?.Dispose();
}
}
public void Dispose()
{
Dispose(disposing: true);
GC.SuppressFinalize(this);
}
}
}