zhangyuekai
2024-08-17 2ea53b9fbd3fc318f1c02c1888c22aec5abab8ef
HStation.RevitDev/RevitDataExport/Utility/DockablePaneUtils.cs
@@ -1,16 +1,13 @@
using Autodesk.Revit.UI;
using HStation.RevitDev.RevitDataExport.Enum;
using HStation.RevitDev.Model.ModelEnum;
using HStation.RevitDev.RevitDataExport.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HStation.RevitDev.RevitDataExport.Utility
{
    public class DockablePaneUtils
    {
        public static void ShowDockablePanel(ExternalCommandData commandData, YWFamilyType type)
        public static void ShowDockablePanel(ExternalCommandData commandData, RevitType type)
        {
            UIApplication uiapp = commandData.Application;
            DockPaneUtil.HideAllDockablePane(uiapp);
@@ -20,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();
        }
    }
}