22 lines
679 B
C#
22 lines
679 B
C#
|
|
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));
|
|
}
|
|
}
|