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