添加项目文件。
This commit is contained in:
21
Szmedi.RvKits/GlobalVariables.cs
Normal file
21
Szmedi.RvKits/GlobalVariables.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Timers;
|
||||
|
||||
using Autodesk.Revit.UI;
|
||||
using Autodesk.Windows;
|
||||
|
||||
|
||||
namespace Szmedi.RvKits
|
||||
{
|
||||
public class GlobalVariables
|
||||
{
|
||||
public static IntPtr RevitWindowPtr => ComponentManager.ApplicationWindow;
|
||||
public static string AddInPath = Assembly.GetExecutingAssembly().Location;
|
||||
public static string DirAssembly = Path.GetDirectoryName(AddInPath);
|
||||
public static UIApplication UIApplication { get; set; }
|
||||
public static Timer Timer { get; } = new() { Enabled = true };
|
||||
public static DockablePaneId PaneId { get; } = new(new Guid(Properties.Settings.Default.DockPaneGuid));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user