speckleworks / SpeckleRevit

Archived, dev moved to https://github.com/speckleworks/SpeckleRevitReboot
MIT License
17 stars 7 forks source link

Make SpeckleView Dockable in Revit. #11

Closed fraguada closed 6 years ago

fraguada commented 6 years ago

First draft is just a floating form. I've not even handled the logic for it to stay on top of Revit.

radumg commented 6 years ago

FYI, this one is not as straightforward as it might seem at first, DockableWindow has its own API in Revit.

Reading list

archinate commented 6 years ago

@fraguada I merged in some boilerplate code for setting up dockable windows in the Revit project. PR https://github.com/speckleworks/SpeckleRevit/pull/14.

The dockable window is registered at application startup with additional command data being accessed when the Ribbon command is run. There is also a special workflow for safely running transactions on a Revit document from a modeless dialog. This is shown the form_MainDock and ExtCmdModeless classes.

I have only ever done dockable forms with WPF forms in Revit so it appears there may be a need to switch from CefSharp.Winforms to CefSharp.Wpf (I am not familiar with CefSharp and its uses)