37 lines
868 B
C#
37 lines
868 B
C#
|
|
using Autodesk.Revit.Attributes;
|
|||
|
|
using Autodesk.Revit.DB;
|
|||
|
|
|
|||
|
|
using Nice3point.Revit.Toolkit.External;
|
|||
|
|
|
|||
|
|
using System;
|
|||
|
|
|
|||
|
|
using Szmedi.RvKits.TransmitFamily;
|
|||
|
|
|
|||
|
|
namespace Szmedi.RvKits.FamilyTools
|
|||
|
|
{
|
|||
|
|
[Transaction(TransactionMode.Manual)]
|
|||
|
|
|
|||
|
|
public class TransmitFamilyCmd : ExternalCommand
|
|||
|
|
{
|
|||
|
|
public override void Execute()
|
|||
|
|
{
|
|||
|
|
new TransmitProjectWin(UiApplication).ShowDialog();
|
|||
|
|
//AssemblyLoaderHelpers loader = new(GlobalVariables.DirAssembly);
|
|||
|
|
//loader.HookAssemblyResolve();
|
|||
|
|
//try
|
|||
|
|
//{
|
|||
|
|
|
|||
|
|
//}
|
|||
|
|
//catch (Exception ex)
|
|||
|
|
//{
|
|||
|
|
// LogAssists.WriteLog(ex.Message);
|
|||
|
|
// Result = Result.Cancelled;
|
|||
|
|
//}
|
|||
|
|
//finally
|
|||
|
|
//{
|
|||
|
|
// loader.UnhookAssemblyResolve();
|
|||
|
|
//}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|