添加项目文件。
This commit is contained in:
27
Sai.RvKits/Variables.cs
Normal file
27
Sai.RvKits/Variables.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user