30 lines
728 B
C#
30 lines
728 B
C#
using Autodesk.Revit.Attributes;
|
|
using Autodesk.Revit.DB;
|
|
|
|
using Nice3point.Revit.Toolkit.External;
|
|
|
|
using System;
|
|
|
|
using System.Linq;
|
|
|
|
namespace Szmedi.RvKits.Civil
|
|
{
|
|
[Transaction(TransactionMode.Manual)]
|
|
|
|
public class WallFinishesCmd : ExternalCommand
|
|
{
|
|
public override void Execute()
|
|
{
|
|
var wallTypes = Document.OfType<WallType>().ToList();
|
|
|
|
//AssemblyLoaderHelpers loader = new(GlobalVariables.DirAssembly);
|
|
//loader.HookAssemblyResolve();
|
|
WinDialogAssists.ShowOrActivate<WallFinishesWin, WallFinishesViewModel>(wallTypes);
|
|
//finally
|
|
//{
|
|
// loader.UnhookAssemblyResolve();
|
|
//}
|
|
}
|
|
}
|
|
}
|