Files
ShrlAlgoToolkit/ShrlAlgo.RvKits/Variables.cs

28 lines
910 B
C#
Raw Normal View History


2024-09-22 11:05:41 +08:00
using Autodesk.Revit.UI;
using System.IO;
using System.Reflection;
using WPFluent.Controls;
2024-09-22 11:05:41 +08:00
namespace ShrlAlgo.RvKits;
2024-09-22 11:05:41 +08:00
public static class Variables
{
public static string AddInPath { get; } = Assembly.GetExecutingAssembly().Location;
2024-09-22 11:05:41 +08:00
// 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 };
2024-09-22 11:05:41 +08:00
public static SnackbarPresenter SnackbarPresenter { get; set; }
}