Files
ShrlAlgoToolkit/Sai.RvKits/Variables.cs

27 lines
835 B
C#
Raw Normal View History

2024-09-22 11:05:41 +08:00
using System.IO;
using System.Reflection;
using Autodesk.Revit.UI;
using Wpf.Ui.Controls;
namespace Sai.RvKits;
public static class Variables
{
2024-10-08 16:21:39 +08:00
public static string AddInPath => 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;
2024-10-08 16:21:39 +08:00
public static string DirAssembly => Path.GetDirectoryName(AddInPath);
public static string FamilyFolder => Path.Combine(DirAssembly, "Libraries");
public static DockablePaneId PaneId => new(new Guid(Properties.Settings.Default.DockPaneGuid));
public static System.Timers.Timer Timer => new();
2024-09-22 11:05:41 +08:00
public static SnackbarPresenter SnackbarPresenter { get; set; }
}