26 lines
707 B
C#
26 lines
707 B
C#
using System.Windows.Controls;
|
|
|
|
using Autodesk.Revit.Attributes;
|
|
|
|
using Nice3point.Revit.Toolkit.External;
|
|
|
|
namespace Sai.RvKits.RvMEP;
|
|
|
|
[Transaction(TransactionMode.Manual)]
|
|
[Regeneration(RegenerationOption.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
|
|
}
|
|
}
|