25 lines
852 B
C#
25 lines
852 B
C#
|
|
using Nice3point.Revit.Toolkit.External;
|
|||
|
|
|
|||
|
|
using Szmedi.RvKits.ModelManager;
|
|||
|
|
|
|||
|
|
namespace Szmedi.RvKits.InfoManager.PropEditor
|
|||
|
|
{
|
|||
|
|
[Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)]
|
|||
|
|
[Autodesk.Revit.Attributes.Regeneration(Autodesk.Revit.Attributes.RegenerationOption.Manual)]
|
|||
|
|
internal class MappingElementCodeCmd : ExternalCommand
|
|||
|
|
{
|
|||
|
|
public override void Execute()
|
|||
|
|
{
|
|||
|
|
WinDialogAssists.ShowOrActivate<MappingElementCodeWin, MappingElementCodeViewModel>();
|
|||
|
|
|
|||
|
|
//var win = WpfSingletonHelper<MappingElementCodeWin>.GetInstance(out var isNewCreate);
|
|||
|
|
//if (isNewCreate)
|
|||
|
|
//{
|
|||
|
|
// win.DataContext = new MappingElementCodeViewModel();
|
|||
|
|
// win.ShowAhead();
|
|||
|
|
//}
|
|||
|
|
//win.Activate();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|