using Autodesk.Revit.UI; using HStation.RevitDev.Model.ModelEnum; using HStation.RevitDev.RevitDataExport.Common; using System; namespace HStation.RevitDev.RevitDataExport.Utility { public class DockablePaneUtils { public static void ShowDockablePanel(ExternalCommandData commandData, RevitType type) { UIApplication uiapp = commandData.Application; DockPaneUtil.HideAllDockablePane(uiapp); var strGuid = Common.GlobalResource.DockablePanelDict[type]; Guid guid = new Guid(strGuid); DockablePaneId paneId = new DockablePaneId(guid: guid); DockablePane pane = uiapp.GetDockablePane(paneId); pane.Show(); } public static void ShowInstancePanel(ExternalCommandData commandData) { UIApplication uiapp = commandData.Application; Guid guid = new Guid(GlobalResource.InstancePaneGuid); DockablePaneId paneId = new DockablePaneId(guid: guid); DockablePane pane = uiapp.GetDockablePane(paneId); pane.Show(); } } }