StartSetting.cs 1002 B

1234567891011121314151617181920212223242526272829303132
  1. /* ==============================================================================
  2. * 功能描述:RegisterDockPaneBll
  3. * 创 建 者:Garrett
  4. * 创建日期:2017/9/28 15:47:34
  5. * ==============================================================================*/
  6. using System.Linq;
  7. using Autodesk.Internal.Windows;
  8. using Autodesk.Revit.UI;
  9. using Autodesk.Windows;
  10. namespace SAGA.RevitMenu.Setting
  11. {
  12. /// <summary>
  13. /// RegisterDockPaneBll
  14. /// </summary>
  15. class StartSetting
  16. {
  17. /// <summary>
  18. /// 不打开项目时,Ribbon默认展开
  19. /// 注释掉,默认收起
  20. /// </summary>
  21. /// <param name="application"></param>
  22. public static void RegiterPane(UIControlledApplication application)
  23. {
  24. //菜单显示
  25. ComponentManager.Ribbon.AutoHideMode = RibbonAutoHideMode.None;
  26. ComponentManager.Ribbon.ActiveTab =
  27. ComponentManager.Ribbon.Tabs.FirstOrDefault();
  28. }
  29. }
  30. }