duheng
2025-03-05 0f831db8df9c2e4adc7feca636967a0fb1cd5e29
HStation.RevitDev/RevitDataExport/Utility/DockablePaneUtils.cs
@@ -1,12 +1,13 @@
using Autodesk.Revit.UI;
using HStation.RevitDev.Model.Enum;
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, RevitFamilyType type)
        public static void ShowDockablePanel(ExternalCommandData commandData, RevitType type)
        {
            UIApplication uiapp = commandData.Application;
            DockPaneUtil.HideAllDockablePane(uiapp);
@@ -16,5 +17,14 @@
            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();
        }
    }
}