整理代码
This commit is contained in:
27
ShrlAlgoToolkit.RevitAddins/Variables.cs
Normal file
27
ShrlAlgoToolkit.RevitAddins/Variables.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
using Autodesk.Revit.UI;
|
||||
|
||||
using System.IO;
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
using WPFluent.Controls;
|
||||
|
||||
namespace ShrlAlgo.RvKits;
|
||||
|
||||
public static class Variables
|
||||
{
|
||||
public static string AddInPath { get; } = Assembly.GetExecutingAssembly().Location;
|
||||
// public static IntPtr RevitWindowPtr
|
||||
//{
|
||||
// [DebuggerStepThrough]
|
||||
// get => ComponentManager.ApplicationWindow;
|
||||
//}
|
||||
|
||||
//public static readonly string DllPath = typeof(Variables).Assembly.Location;
|
||||
public static string DirAssembly { get; } = Path.GetDirectoryName(AddInPath);
|
||||
public static string FamilyFolder { get; } = Path.Combine(DirAssembly, "Libraries");
|
||||
public static DockablePaneId PaneId { get; } = new(new Guid(Properties.Settings.Default.DockPaneGuid));
|
||||
public static System.Timers.Timer AutoSaveTimer { get; } = new() { Enabled = true };
|
||||
public static SnackbarPresenter SnackbarPresenter { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user