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
@@ -32,7 +32,7 @@ namespace Revit.SDK.Samples.CreateBeamSystem.CS
/// <summary>
/// base class of sketch object to draw 2D geometry object
/// </summary>
public abstract class ObjectSketch
public abstract class ObjectSketch : IDisposable
{
/// <summary>
/// bounding box of the geometry object
@@ -71,5 +71,22 @@ namespace Revit.SDK.Samples.CreateBeamSystem.CS
/// <param name="g"></param>
/// <param name="translate"></param>
public abstract void Draw(Graphics g, Matrix translate);
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
if (m_pen != null)
m_pen.Dispose();
if (m_transform != null)
m_transform.Dispose();
}
}
public void Dispose()
{
Dispose(disposing: true);
GC.SuppressFinalize(this);
}
}
}