ExternalCommand.cs 968 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using Autodesk.Revit.UI;
  9. using FWindSoft.Revit;
  10. namespace RevitTest
  11. {
  12. [Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)]
  13. [Autodesk.Revit.Attributes.Regeneration(Autodesk.Revit.Attributes.RegenerationOption.Manual)]
  14. [Autodesk.Revit.Attributes.Journaling(Autodesk.Revit.Attributes.JournalingMode.NoCommandData)]
  15. public class ShowCommand : ExternalCommand
  16. {
  17. public override Result Execute(ExternalCommandData commandData, ref string message, Autodesk.Revit.DB.ElementSet elements)
  18. {
  19. //var pane = RevitCustomDockablePanels.GetDockablePane(commandData.Application, RevitCustomDockablePanels.Default);
  20. //pane.Show();
  21. MessageBox.Show("ss");
  22. return Result.Succeeded;
  23. }
  24. }
  25. }