mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-09-09 13:22:20 +00:00
integrate Revit 2025 SDK
This commit is contained in:
@@ -65,9 +65,9 @@ namespace Revit.SDK.Samples.UIAPI.CS
|
||||
PreviewModel form = new PreviewModel(commandData.Application.Application, ElementId.InvalidElementId);
|
||||
form.ShowDialog();
|
||||
}
|
||||
catch (Exception e)
|
||||
catch
|
||||
{
|
||||
throw e;
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace Revit.SDK.Samples.UIAPI.CS
|
||||
using System;
|
||||
|
||||
namespace Revit.SDK.Samples.UIAPI.CS
|
||||
{
|
||||
partial class PreviewModel
|
||||
{
|
||||
@@ -16,6 +18,9 @@
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
(_uiApplication as IDisposable)?.Dispose();
|
||||
(_dbDocument as IDisposable)?.Dispose();
|
||||
(_application as IDisposable)?.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user