I'm currently setting my plug-in's UI to "TopMost" but if I minimize Revit, my plugin stays on top. Is there a way to have my plug-in's UI to match the functionality of Revit?
Solved! Go to Solution.
Solved by jeremytammik. Go to Solution.
You have to ensure that your control is assigned the Revit main window as parent.
For instance, if you display your form using ShowDialog, make use of its overload taking an IWin32Window argument:
https://thebuildingcoder.typepad.com/blog/2010/06/revit-parent-window.html
Also note that the Revit 2019 API provides direct access to the Revit main window handle:
https://thebuildingcoder.typepad.com/blog/2018/08/whats-new-in-the-revit-20191-api.html#3.1.4
Cheers,
Jeremy
Can't find what you're looking for? Ask the community or share your knowledge.