2024-09-22 11:05:41 +08:00
|
|
|
|
using Autodesk.Revit.Attributes;
|
|
|
|
|
|
using Autodesk.Revit.DB;
|
|
|
|
|
|
using Nice3point.Revit.Toolkit.External;
|
|
|
|
|
|
|
2025-04-24 20:56:10 +08:00
|
|
|
|
using ShrlAlgo.Toolkit.Core.Assist;
|
2025-02-10 20:53:40 +08:00
|
|
|
|
|
|
|
|
|
|
namespace ShrlAlgo.RvKits.RvCivil;
|
2024-09-22 11:05:41 +08:00
|
|
|
|
|
|
|
|
|
|
[Transaction(TransactionMode.Manual)]
|
|
|
|
|
|
[Regeneration(RegenerationOption.Manual)]
|
|
|
|
|
|
public class FloorFinishesCmd : ExternalCommand
|
|
|
|
|
|
{
|
|
|
|
|
|
public override void Execute()
|
|
|
|
|
|
{
|
|
|
|
|
|
var floorTypes = Document.OfClass<FloorType>().Cast<FloorType>().ToList();
|
2025-04-24 20:56:10 +08:00
|
|
|
|
WinDialogHelper.ShowModeless<FloorFinishesView>(new FloorFinishesViewModel(floorTypes));
|
2024-09-22 11:05:41 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|