添加项目文件。

This commit is contained in:
GG Z
2024-09-22 11:05:41 +08:00
parent fb5d55723a
commit 49ceaae6a8
764 changed files with 78850 additions and 0 deletions

27
Sai.RvKits/Variables.cs Normal file
View File

@@ -0,0 +1,27 @@
using System.IO;
using System.Reflection;
using Autodesk.Revit.UI;
using Wpf.Ui.Controls;
namespace Sai.RvKits;
public static class Variables
{
public static readonly string AddInPath = Assembly.GetExecutingAssembly().Location;
// public static IntPtr RevitWindowPtr
//{
// [DebuggerStepThrough]
// get => ComponentManager.ApplicationWindow;
//}
//public static readonly string DllPath = typeof(Variables).Assembly.Location;
public static string DirAssembly = Path.GetDirectoryName(AddInPath);
public static string FamilyFolder = $@"{DirAssembly}\Libraries\";
public static string LogFolder = $@"{DirAssembly}\Log\";
public static DockablePaneId PaneId { get; } = new(new Guid(Properties.Settings.Default.DockPaneGuid));
public static System.Timers.Timer Timer { get; } = new();
public static SnackbarPresenter SnackbarPresenter { get; set; }
}