2024-09-22 11:05:41 +08:00
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
|
|
|
|
|
|
|
using Autodesk.Revit.Attributes;
|
2024-10-27 00:19:48 +08:00
|
|
|
|
using Autodesk.Revit.DB.Plumbing;
|
2024-09-22 11:05:41 +08:00
|
|
|
|
|
|
|
|
|
|
using Nice3point.Revit.Toolkit.External;
|
|
|
|
|
|
|
2025-02-10 20:53:40 +08:00
|
|
|
|
|
|
|
|
|
|
namespace ShrlAlgo.RvKits.RvMEP;
|
2024-09-22 11:05:41 +08:00
|
|
|
|
|
|
|
|
|
|
[Transaction(TransactionMode.Manual)]
|
|
|
|
|
|
public class AnyConnectCmd : ExternalCommand
|
|
|
|
|
|
{
|
|
|
|
|
|
public override void Execute()
|
|
|
|
|
|
{
|
|
|
|
|
|
WinDialogHelper.ShowModeless<AnyConnectView>(new AnyConnectViewModel());
|
|
|
|
|
|
#if REVIT2018
|
|
|
|
|
|
//WinDialogHelper.ShowModeless<AnyConnectView>(new AnyConnectViewModel());
|
|
|
|
|
|
#elif REVIT2020
|
|
|
|
|
|
//OptionsBarAssist.RegisterOptionsBar((AutoConnectOptionsView view, AnyConnectViewModel viewModel) =>
|
|
|
|
|
|
//{
|
|
|
|
|
|
// viewModel.ConnectCommand.Execute(null);
|
|
|
|
|
|
//});
|
|
|
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|