40 lines
932 B
C#
40 lines
932 B
C#
|
|
using Autodesk.Revit.Attributes;
|
|||
|
|
using Autodesk.Revit.DB;
|
|||
|
|
|
|||
|
|
using Nice3point.Revit.Toolkit.External;
|
|||
|
|
|
|||
|
|
using System;
|
|||
|
|
|
|||
|
|
using System.Windows;
|
|||
|
|
|
|||
|
|
using Szmedi.RvKits.Civil.RoomReinforcement;
|
|||
|
|
|
|||
|
|
namespace Szmedi.RvKits.Civil
|
|||
|
|
{
|
|||
|
|
[Transaction(TransactionMode.Manual)]
|
|||
|
|
|
|||
|
|
public class RoomNamingCmd : ExternalCommand
|
|||
|
|
{
|
|||
|
|
public override void Execute()
|
|||
|
|
{
|
|||
|
|
RoomNamingWin win;
|
|||
|
|
//AssemblyLoaderHelpers loader = new(GlobalVariables.DirAssembly);
|
|||
|
|
//loader.HookAssemblyResolve();
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
win = new RoomNamingWin(UiApplication);
|
|||
|
|
win.ShowDialog();
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
MessageBox.Show(e.Message);
|
|||
|
|
LogAssists.WriteLog(e.StackTrace);
|
|||
|
|
}
|
|||
|
|
//finally
|
|||
|
|
//{
|
|||
|
|
// loader.UnhookAssemblyResolve();
|
|||
|
|
//}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|