Files
Shrlalgo.RvKits/ShrlAlgoToolkit.RevitAddins/Variables.cs

22 lines
813 B
C#
Raw Normal View History

2025-04-24 20:56:44 +08:00
using System.IO;
using System.Reflection;
2025-07-11 09:20:23 +08:00
2024-09-22 11:05:41 +08:00
2025-04-24 20:56:44 +08:00
namespace ShrlAlgoToolkit.RevitAddins;
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");
2025-04-24 20:56:44 +08:00
public static DockablePaneId PaneId { get; } = new(new Guid(RevitAddins.Properties.Settings.Default.DockPaneGuid));
public static System.Timers.Timer AutoSaveTimer { get; } = new() { Enabled = true };
2024-09-22 11:05:41 +08:00
}