Files
ShrlAlgoToolkit/ShrlAlgo.RvKits/RvCivil/WallFinishesCmd.cs

21 lines
505 B
C#

using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Nice3point.Revit.Toolkit.External;
namespace ShrlAlgo.RvKits.RvCivil
{
[Transaction(TransactionMode.Manual)]
[Regeneration(RegenerationOption.Manual)]
public class WallFinishesCmd : ExternalCommand
{
public override void Execute()
{
var wallTypes = Document.OfCollector().OfClass(typeof(WallType)).Cast<WallType>().ToList();
WinDialogHelper.ShowModeless<WallFinishesView>(new WallFinishesViewModel(wallTypes));
}
}
}