| | |
| | | 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); |
| | |
| | | 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(); |
| | | } |
| | | } |
| | | } |