28 lines
831 B
C#
28 lines
831 B
C#
|
|
using Autodesk.Revit.Attributes;
|
|||
|
|
|
|||
|
|
using Nice3point.Revit.Toolkit.External;
|
|||
|
|
|
|||
|
|
namespace Szmedi.RvKits.MEPTools;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RightDirection = CropBox.Transform.BasisX
|
|||
|
|
/// ViewDirection = CropBox.Transform.BasisZ
|
|||
|
|
/// UpDirection = XYZ.BasisZ = CropBox.Transform.BasisY
|
|||
|
|
/// </summary>
|
|||
|
|
[Transaction(TransactionMode.Manual)]
|
|||
|
|
public class QuickViewSectionCmd : ExternalCommand
|
|||
|
|
{
|
|||
|
|
public override void Execute()
|
|||
|
|
{
|
|||
|
|
WinDialogAssists.ShowOrActivate<QuickViewSectionView, QuickViewSectionViewModel>(UiDocument);
|
|||
|
|
|
|||
|
|
//QuickViewSectionView win = WpfSingletonHelper<QuickViewSectionView>.GetInstance(out bool isNewCreate);
|
|||
|
|
//if (isNewCreate)
|
|||
|
|
//{
|
|||
|
|
// win.DataContext = new QuickViewSectionViewModel(UiDocument);
|
|||
|
|
// win.ShowAhead();
|
|||
|
|
//}
|
|||
|
|
//win.Activate();
|
|||
|
|
}
|
|||
|
|
}
|