Files
Shrlalgo.RvKits/ShrlAlgo.RvKits/Variables.cs

28 lines
910 B
C#

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; }
}