添加项目文件。
This commit is contained in:
39
Szmedi.RvKits/Civil/RoomNamingCmd.cs
Normal file
39
Szmedi.RvKits/Civil/RoomNamingCmd.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
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();
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user