修复bug和新增部分功能

This commit is contained in:
GG Z
2024-10-08 16:21:39 +08:00
parent 082b781808
commit b6647218be
44 changed files with 1709 additions and 1390 deletions

View File

@@ -9,7 +9,7 @@ namespace Sai.RvKits;
public static class Variables
{
public static readonly string AddInPath = Assembly.GetExecutingAssembly().Location;
public static string AddInPath => Assembly.GetExecutingAssembly().Location;
// public static IntPtr RevitWindowPtr
//{
@@ -18,10 +18,9 @@ public static class Variables
//}
//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 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();
public static SnackbarPresenter SnackbarPresenter { get; set; }
}