zhangyk-c
2024-07-16 e3cf9cc38f6415ceffc4e8e1f733a68472a46f35
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using Autodesk.Revit.UI;
using HStation.RevitDev.RevitDataExport.Enum;
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)
        {
            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();
        }
    }
}